nixpkgs/pkgs/applications/misc/curaengine/default.nix

30 lines
722 B
Nix
Raw Normal View History

2014-09-04 17:04:53 +02:00
{ stdenv, fetchurl }:
let
2015-08-21 15:42:49 +02:00
version = "15.04";
2014-09-04 17:04:53 +02:00
in
2014-03-25 23:17:17 +01:00
stdenv.mkDerivation {
2014-09-26 12:12:14 +02:00
name = "curaengine-${version}";
2014-03-25 23:17:17 +01:00
2014-09-04 17:04:53 +02:00
src = fetchurl {
url = "https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz";
2015-08-21 15:42:49 +02:00
sha256 = "0rgrsyi7951fsv3lzprlzrg55jf6pbdjfql85dylwmg9nc4y8xym";
2014-09-04 17:04:53 +02:00
};
2014-03-25 23:17:17 +01:00
2016-04-14 00:13:23 +02:00
postPatch = ''
sed -i 's,--static,,g' Makefile
'';
2014-09-04 17:04:53 +02:00
installPhase = ''
mkdir -p $out/bin
2015-01-19 15:47:58 +01:00
cp build/CuraEngine $out/bin/
2014-09-04 17:04:53 +02:00
'';
2014-03-25 23:17:17 +01:00
2014-09-04 17:04:53 +02:00
meta = with stdenv.lib; {
description = "Engine for processing 3D models into 3D printing instructions";
homepage = https://github.com/Ultimaker/CuraEngine;
license = licenses.agpl3;
platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
};
2014-03-25 23:17:17 +01:00
}