diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/curaengine')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/curaengine/default.nix | 26 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/misc/curaengine/stable.nix | 29 |
2 files changed, 55 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/curaengine/default.nix b/nixpkgs/pkgs/applications/misc/curaengine/default.nix new file mode 100644 index 000000000000..4a4558ba2893 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/curaengine/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, cmake, libarcus, stb, protobuf }: + +stdenv.mkDerivation rec { + pname = "curaengine"; + version = "4.8.0"; + + src = fetchFromGitHub { + owner = "Ultimaker"; + repo = "CuraEngine"; + rev = version; + sha256 = "083l327ry6hv3yaa1p8dx1hx7fm12b0lh5nlbshxjyym0vi15rw2"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ libarcus stb protobuf ]; + + cmakeFlags = [ "-DCURA_ENGINE_VERSION=${version}" ]; + + meta = with lib; { + description = "A powerful, fast and robust engine for processing 3D models into 3D printing instruction"; + homepage = "https://github.com/Ultimaker/CuraEngine"; + license = licenses.agpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar gebner ]; + }; +} diff --git a/nixpkgs/pkgs/applications/misc/curaengine/stable.nix b/nixpkgs/pkgs/applications/misc/curaengine/stable.nix new file mode 100644 index 000000000000..23041c2fe37e --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/curaengine/stable.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl }: +let + version = "15.04.6"; +in +stdenv.mkDerivation { + pname = "curaengine"; + inherit version; + + src = fetchurl { + url = "https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"; + sha256 = "1cd4dikzvqyj5g80rqwymvh4nwm76vsf78clb37kj6q0fig3qbjg"; + }; + + postPatch = '' + sed -i 's,--static,,g' Makefile + ''; + + installPhase = '' + mkdir -p $out/bin + cp build/CuraEngine $out/bin/ + ''; + + meta = with lib; { + description = "Engine for processing 3D models into 3D printing instructions"; + homepage = "https://github.com/Ultimaker/CuraEngine"; + license = licenses.agpl3; + platforms = platforms.linux; + }; +} |