nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 libarcus, 7 stb, 8 protobuf, 9 fetchpatch, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "curaengine"; 14 version = "4.13.1"; 15 16 src = fetchFromGitHub { 17 owner = "Ultimaker"; 18 repo = "CuraEngine"; 19 rev = version; 20 sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY="; 21 }; 22 23 nativeBuildInputs = [ cmake ]; 24 buildInputs = [ 25 libarcus 26 stb 27 protobuf 28 ]; 29 30 cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ]; 31 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 ]; 40 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 ]; 49 mainProgram = "CuraEngine"; 50 }; 51}