Remove n0emis as direct maintainer (#365023)
[NixPkgs.git] / pkgs / applications / misc / curaengine / default.nix
blob428865935e2daf61bf74de01ff103ada830422df
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   libarcus,
7   stb,
8   protobuf,
9   fetchpatch,
12 stdenv.mkDerivation rec {
13   pname = "curaengine";
14   version = "4.13.1";
16   src = fetchFromGitHub {
17     owner = "Ultimaker";
18     repo = "CuraEngine";
19     rev = version;
20     sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY=";
21   };
23   nativeBuildInputs = [ cmake ];
24   buildInputs = [
25     libarcus
26     stb
27     protobuf
28   ];
30   cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ];
32   # TODO already fixed in master, remove in next release
33   patches = [
34     (fetchpatch {
35       url = "https://github.com/Ultimaker/CuraEngine/commit/de60e86a6ea11cb7d121471b5dd192e5deac0f3d.patch";
36       hash = "sha256-/gT9yErIDDYAXvZ6vX5TGlwljy31K563+sqkm1UGljQ=";
37       includes = [ "src/utils/math.h" ];
38     })
39   ];
41   meta = with lib; {
42     description = "Powerful, fast and robust engine for processing 3D models into 3D printing instruction";
43     homepage = "https://github.com/Ultimaker/CuraEngine";
44     license = licenses.agpl3Only;
45     platforms = platforms.linux;
46     maintainers = with maintainers; [
47       abbradar
48       gebner
49     ];
50     mainProgram = "CuraEngine";
51   };