2024-01-25 14:12:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libarcus, stb, protobuf, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "curaengine";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "4.13.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "CuraEngine";
|
|
|
|
rev = version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ libarcus stb protobuf ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# 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" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Powerful, fast and robust engine for processing 3D models into 3D printing instruction";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Ultimaker/CuraEngine";
|
2021-04-26 19:14:03 +00:00
|
|
|
license = licenses.agpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar gebner ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "CuraEngine";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|