mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +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
34 lines
920 B
Nix
34 lines
920 B
Nix
{ stdenv, buildPythonPackage, python, fetchFromGitHub
|
|
, cmake, sip, protobuf, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libarcus";
|
|
version = "4.4.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libArcus";
|
|
rev = version;
|
|
sha256 = "16m7m6ak5fqw3djn4azwiamkizcc1dv7brv11kv99n3b43zzgn6d";
|
|
};
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ protobuf ];
|
|
|
|
postPatch = ''
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Communication library between internal components for Ultimaker software";
|
|
homepage = https://github.com/Ultimaker/libArcus;
|
|
license = licenses.lgpl3Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar gebner ];
|
|
};
|
|
}
|