blob: 7ce8701993619fa24cdd44c1c5e264f7600780dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
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 = [ ];
};
}
|