git.iko.soy/typeable/nixpkgs
on master help sign in
selinux-python: fix cross; strict deps
commit51e95616d729f46221728c8a8bce250d08968884 authorAlyssa Ross <hi@alyssa.is> dateFri 12 Nov 2021, 11:28 (5 years ago) parentfca6647
1 file changed+6−5
pkgs/os-specific/linux/selinux-python/default.nix+6−5
pkgs/os-specific/linux/selinux-python/default.nix+6−5
@@ -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