@@ -4,7 +4,6 @@
44# this is python3 only because setools only supports python3
55
66with lib;
7−with python3.pkgs;
87
98stdenv.mkDerivation rec {
109 pname = "selinux-python";
@@ -17,9 +16,11 @@ stdenv.mkDerivation rec {
1716 sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n";
1817 };
1918
20− nativeBuildInputs = [ wrapPython ];
21− buildInputs = [ libsepol python3 ];
22− propagatedBuildInputs = [ libselinux libsemanage setools ipy ];
19+ strictDeps = true;
20+
21+ nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
22+ buildInputs = [ libsepol ];
23+ propagatedBuildInputs = [ libselinux libsemanage setools python3.pkgs.ipy ];
2324
2425 postPatch = ''
2526 substituteInPlace sepolicy/Makefile --replace "echo --root" "echo --prefix"
@@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
3233 "LOCALEDIR=$(out)/share/locale"
3334 "BASHCOMPLETIONDIR=$(out)/share/bash-completion/completions"
3435 "PYTHON=python"
35− "PYTHONLIBDIR=$(out)/${python.sitePackages}"
36+ "PYTHONLIBDIR=$(out)/${python3.sitePackages}"
3637 "LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
3738 ];
3839