diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/cura/lulzbot/libsavitar.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/cura/lulzbot/libsavitar.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/cura/lulzbot/libsavitar.nix b/nixpkgs/pkgs/applications/misc/cura/lulzbot/libsavitar.nix new file mode 100644 index 000000000000..dd84173ffce1 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/cura/lulzbot/libsavitar.nix @@ -0,0 +1,33 @@ +{ lib, buildPythonPackage, pythonOlder, fetchgit, cmake, sip_4 }: + +buildPythonPackage { + pname = "libsavitar-lulzbot"; + name = "libsavitar-lulzbot"; + version = "3.6.21"; + format = "other"; + + src = fetchgit { + url = "https://code.alephobjects.com/source/savitar.git"; + rev = "ee8ada42c55f54727ce4d275c294ba426d3d8234"; + sha256 = "1wm5ii3cmni8dk3c65kw4wglpypkdsfpgd480d3hc1r5bqpq0d6j"; + }; + + postPatch = '' + # To workaround buggy SIP detection which overrides PYTHONPATH + sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake + ''; + + nativeBuildInputs = [ cmake ]; + + propagatedBuildInputs = [ sip_4 ]; + + disabled = pythonOlder "3.4.0"; + + meta = with lib; { + description = "C++ implementation of 3mf loading with SIP python bindings"; + homepage = "https://github.com/Ultimaker/libSavitar"; + license = licenses.lgpl3Plus; + platforms = platforms.unix; + maintainers = with maintainers; [ chaduffy ]; + }; +} |