2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2017-02-25 23:05:04 +01:00
|
|
|
let
|
|
|
|
version = "15.04.6";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "curaengine";
|
|
|
|
inherit version;
|
2017-02-25 23:05:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1cd4dikzvqyj5g80rqwymvh4nwm76vsf78clb37kj6q0fig3qbjg";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-05 12:52:33 +01:00
|
|
|
substituteInPlace Makefile --replace "--static" ""
|
|
|
|
'' + lib.optionalString stdenv.isi686 ''
|
|
|
|
substituteInPlace Makefile --replace "-flto" ""
|
2017-02-25 23:05:04 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/CuraEngine $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-25 23:05:04 +01:00
|
|
|
description = "Engine for processing 3D models into 3D printing instructions";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Ultimaker/CuraEngine";
|
2017-02-25 23:05:04 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|