mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
50c8701d51
Closes #74134. Note the `cura.materials` hash is not updated because apparently its contents stay the same, despite version update. Implements comment about libarcus from: https://github.com/NixOS/nixpkgs/pull/69435#issuecomment-535465040
33 lines
878 B
Nix
33 lines
878 B
Nix
{ stdenv, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libsavitar";
|
|
version = "4.4.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libSavitar";
|
|
rev = version;
|
|
sha256 = "0sm8945icbdxvyj7yiq9yhkk17ww3gjkpsbk7875qijzlgfs60j8";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
meta = with stdenv.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; [ abbradar orivej gebner ];
|
|
};
|
|
}
|