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
# this is python3 only because setools only supports python3
5
6
with lib;
7
-
with python3.pkgs;
8
9
stdenv.mkDerivation rec {
10
pname = "selinux-python";
···
17
sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n";
18
};
19
20
-
nativeBuildInputs = [ wrapPython ];
21
-
buildInputs = [ libsepol python3 ];
22
-
propagatedBuildInputs = [ libselinux libsemanage setools ipy ];
0
0
23
24
postPatch = ''
25
substituteInPlace sepolicy/Makefile --replace "echo --root" "echo --prefix"
···
32
"LOCALEDIR=$(out)/share/locale"
33
"BASHCOMPLETIONDIR=$(out)/share/bash-completion/completions"
34
"PYTHON=python"
35
-
"PYTHONLIBDIR=$(out)/${python.sitePackages}"
36
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
37
];
38
···
4
# this is python3 only because setools only supports python3
5
6
with lib;
0
7
8
stdenv.mkDerivation rec {
9
pname = "selinux-python";
···
16
sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n";
17
};
18
19
+
strictDeps = true;
20
+
21
+
nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
22
+
buildInputs = [ libsepol ];
23
+
propagatedBuildInputs = [ libselinux libsemanage setools python3.pkgs.ipy ];
24
25
postPatch = ''
26
substituteInPlace sepolicy/Makefile --replace "echo --root" "echo --prefix"
···
33
"LOCALEDIR=$(out)/share/locale"
34
"BASHCOMPLETIONDIR=$(out)/share/bash-completion/completions"
35
"PYTHON=python"
36
+
"PYTHONLIBDIR=$(out)/${python3.sitePackages}"
37
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
38
];
39