nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildPythonPackage, python, fetchFromGitHub
2, cmake, sip_4, protobuf, pythonOlder }:
3
4buildPythonPackage rec {
5 pname = "libarcus";
6 version = "4.9.0";
7 format = "other";
8
9 src = fetchFromGitHub {
10 owner = "Ultimaker";
11 repo = "libArcus";
12 rev = version;
13 sha256 = "0wq72nf680bwxijjajb4piw563rnvflshmw96kqln4lsny7ydjj2";
14 };
15
16 disabled = pythonOlder "3.4.0";
17
18 propagatedBuildInputs = [ sip_4 ];
19 nativeBuildInputs = [ cmake ];
20 buildInputs = [ protobuf ];
21
22 postPatch = ''
23 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
24 '';
25
26 meta = with lib; {
27 description = "Communication library between internal components for Ultimaker software";
28 homepage = "https://github.com/Ultimaker/libArcus";
29 license = licenses.lgpl3Plus;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ abbradar gebner ];
32 };
33}