2021-12-13 14:36:58 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "curaengine";
|
2021-12-13 14:36:58 +00:00
|
|
|
version = "15.04.6";
|
2017-02-25 22:05:04 +00:00
|
|
|
|
2021-12-13 14:36:58 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "CuraEngine";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-8V21TRSqCN+hkTlz51d5A5oK5JOwEtx+ROt8cfJBL/0=";
|
2017-02-25 22:05:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-05 11:52:33 +00:00
|
|
|
substituteInPlace Makefile --replace "--static" ""
|
2017-02-25 22:05:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/CuraEngine $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-02-25 22:05:04 +00:00
|
|
|
description = "Engine for processing 3D models into 3D printing instructions";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Ultimaker/CuraEngine";
|
2017-02-25 22:05:04 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|