Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 59 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, python, fetchFromGitHub, fetchpatch, cmake, sip4, protobuf, distutils,}:
buildPythonPackage rec { pname = "libarcus"; version = "4.12.0"; pyproject = false;
src = fetchFromGitHub { owner = "Ultimaker"; repo = "libArcus"; rev = version; hash = "sha256-X33ptwYj9YkVWqUDPP+Ic+hoIb+rwsLdQXvHLA9z+3w="; };
patches = [ # Fix build against protobuf 3.18+ # https://github.com/Ultimaker/libArcus/issues/121 (fetchpatch { url = "https://raw.githubusercontent.com/coryan/vcpkg/f69b85aa403b04e7d442c90db3418d484e44024f/ports/arcus/0001-fix-protobuf-deprecated.patch"; sha256 = "0bqj7pxzpwsamknd6gadj419x6mwx8wnlfzg4zqn6cax3cmasjb2"; }) ];
propagatedBuildInputs = [ sip4 distutils ];
nativeBuildInputs = [ cmake sip4 ];
buildInputs = [ protobuf ];
strictDeps = true;
postPatch = '' sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake '';
meta = { description = "Communication library between internal components for Ultimaker software"; homepage = "https://github.com/Ultimaker/libArcus"; license = lib.licenses.lgpl3Plus; platforms = lib.platforms.linux; maintainers = [ ]; };}