Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
libarcus,
|
|
stb,
|
|
protobuf,
|
|
fetchpatch,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "curaengine";
|
|
version = "4.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "CuraEngine";
|
|
rev = version;
|
|
sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
libarcus
|
|
stb
|
|
protobuf
|
|
];
|
|
|
|
cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ];
|
|
|
|
# TODO already fixed in master, remove in next release
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/Ultimaker/CuraEngine/commit/de60e86a6ea11cb7d121471b5dd192e5deac0f3d.patch";
|
|
hash = "sha256-/gT9yErIDDYAXvZ6vX5TGlwljy31K563+sqkm1UGljQ=";
|
|
includes = [ "src/utils/math.h" ];
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Powerful, fast and robust engine for processing 3D models into 3D printing instruction";
|
|
homepage = "https://github.com/Ultimaker/CuraEngine";
|
|
license = licenses.agpl3Only;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "CuraEngine";
|
|
};
|
|
}
|