nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "curaengine";
9 version = "15.04.6";
10
11 src = fetchFromGitHub {
12 owner = "Ultimaker";
13 repo = "CuraEngine";
14 rev = version;
15 sha256 = "sha256-8V21TRSqCN+hkTlz51d5A5oK5JOwEtx+ROt8cfJBL/0=";
16 };
17
18 postPatch = ''
19 substituteInPlace Makefile --replace "--static" ""
20 '';
21
22 installPhase = ''
23 mkdir -p $out/bin
24 cp build/CuraEngine $out/bin/
25 '';
26
27 meta = with lib; {
28 description = "Engine for processing 3D models into 3D printing instructions";
29 mainProgram = "CuraEngine";
30 homepage = "https://github.com/Ultimaker/CuraEngine";
31 license = licenses.agpl3Plus;
32 platforms = platforms.linux;
33 };
34}