summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/cu/curaengine_stable/package.nix
blob: 2e602b76a602e17551ae32cc262771afa27061a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  stdenv,
  fetchFromGitHub,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "curaengine";
  version = "15.04.6";

  src = fetchFromGitHub {
    owner = "Ultimaker";
    repo = "CuraEngine";
    tag = finalAttrs.version;
    hash = "sha256-8V21TRSqCN+hkTlz51d5A5oK5JOwEtx+ROt8cfJBL/0=";
  };

  postPatch = ''
    substituteInPlace Makefile --replace "--static" ""
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp build/CuraEngine $out/bin/
  '';

  meta = {
    description = "Engine for processing 3D models into 3D printing instructions";
    mainProgram = "CuraEngine";
    homepage = "https://github.com/Ultimaker/CuraEngine";
    license = lib.licenses.agpl3Plus;
    platforms = lib.platforms.linux;
  };
})