2024-01-15 13:50:05 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libarcus, stb, protobuf, fetchpatch }:
|
2017-02-25 22:05:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "curaengine";
|
2022-02-21 03:59:33 +00:00
|
|
|
version = "4.13.1";
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-02-25 22:05:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "CuraEngine";
|
|
|
|
rev = version;
|
2022-02-21 03:59:33 +00:00
|
|
|
sha256 = "sha256-dx0Q6cuA66lG4nwR7quW5Tvs9sdxjdV4gtpxXirI4nY=";
|
2014-09-04 15:04:53 +00:00
|
|
|
};
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2017-02-25 22:05:04 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2019-03-02 15:04:09 +00:00
|
|
|
buildInputs = [ libarcus stb protobuf ];
|
2016-04-13 22:13:23 +00:00
|
|
|
|
2018-06-07 09:55:47 +00:00
|
|
|
cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ];
|
2014-03-25 22:17:17 +00:00
|
|
|
|
2024-01-15 13:50:05 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-25 22:05:04 +00:00
|
|
|
description = "Powerful, fast and robust engine for processing 3D models into 3D printing instruction";
|
2020-03-09 22:45:37 +00:00
|
|
|
homepage = "https://github.com/Ultimaker/CuraEngine";
|
2021-04-24 14:06:04 +00:00
|
|
|
license = licenses.agpl3Only;
|
2014-09-04 15:04:53 +00:00
|
|
|
platforms = platforms.linux;
|
2019-08-08 07:09:25 +00:00
|
|
|
maintainers = with maintainers; [ abbradar gebner ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "CuraEngine";
|
2014-09-04 15:04:53 +00:00
|
|
|
};
|
2014-03-25 22:17:17 +00:00
|
|
|
}
|