2018-08-31 16:10:37 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, cmake, libarcus, stb }:
|
2017-02-25 23:05:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-26 12:12:14 +02:00
|
|
|
name = "curaengine-${version}";
|
2018-07-14 22:53:57 +02:00
|
|
|
version = "3.4.1";
|
2014-03-25 23:17:17 +01:00
|
|
|
|
2017-02-25 23:05:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "CuraEngine";
|
|
|
|
rev = version;
|
2018-07-14 22:53:57 +02:00
|
|
|
sha256 = "083jmhzmb60rmqw0fhbnlxyblzkmpn3k6zc75xq90x5g3h60wib4";
|
2014-09-04 17:04:53 +02:00
|
|
|
};
|
2014-03-25 23:17:17 +01:00
|
|
|
|
2018-08-31 16:10:37 +02:00
|
|
|
patches = [
|
|
|
|
# Fixed upstream, but not yet released
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Ultimaker/CuraEngine/commit/5aad55bf67e52ce5bdb27a3925af8a4cab441b38.patch";
|
|
|
|
sha256 = "1hxbslzhkvdg8p33mvlbrpw62gwfqpsdbfca6yhdng9hifl86j3f";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-02-25 23:05:04 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-07-14 22:53:57 +02:00
|
|
|
buildInputs = [ libarcus stb ];
|
2016-04-14 00:13:23 +02:00
|
|
|
|
2018-06-07 11:55:47 +02:00
|
|
|
cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ];
|
2014-03-25 23:17:17 +01:00
|
|
|
|
2014-09-04 17:04:53 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-02-25 23:05:04 +01:00
|
|
|
description = "A powerful, fast and robust engine for processing 3D models into 3D printing instruction";
|
2018-02-25 17:47:45 +01:00
|
|
|
homepage = https://github.com/Ultimaker/CuraEngine;
|
2014-09-04 17:04:53 +02:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.linux;
|
2017-02-25 23:05:04 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2014-09-04 17:04:53 +02:00
|
|
|
};
|
2014-03-25 23:17:17 +01:00
|
|
|
}
|