tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
selinux-python: fix cross; strict deps
Alyssa Ross
4 years ago
51e95616
fca6647a
+6
-5
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
selinux-python
default.nix
+6
-5
pkgs/os-specific/linux/selinux-python/default.nix
···
4
4
# this is python3 only because setools only supports python3
5
5
6
6
with lib;
7
7
-
with python3.pkgs;
8
7
9
8
stdenv.mkDerivation rec {
10
9
pname = "selinux-python";
···
17
16
sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n";
18
17
};
19
18
20
20
-
nativeBuildInputs = [ wrapPython ];
21
21
-
buildInputs = [ libsepol python3 ];
22
22
-
propagatedBuildInputs = [ libselinux libsemanage setools ipy ];
19
19
+
strictDeps = true;
20
20
+
21
21
+
nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
22
22
+
buildInputs = [ libsepol ];
23
23
+
propagatedBuildInputs = [ libselinux libsemanage setools python3.pkgs.ipy ];
23
24
24
25
postPatch = ''
25
26
substituteInPlace sepolicy/Makefile --replace "echo --root" "echo --prefix"
···
32
33
"LOCALEDIR=$(out)/share/locale"
33
34
"BASHCOMPLETIONDIR=$(out)/share/bash-completion/completions"
34
35
"PYTHON=python"
35
35
-
"PYTHONLIBDIR=$(out)/${python.sitePackages}"
36
36
+
"PYTHONLIBDIR=$(out)/${python3.sitePackages}"
36
37
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
37
38
];
38
39