summary refs log tree commit diff
path: root/pkgs/os-specific/linux/selinux-python
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-11-12 11:28:15 +0000
committerAlyssa Ross <hi@alyssa.is>2021-11-13 12:04:16 +0000
commit51e95616d729f46221728c8a8bce250d08968884 (patch)
tree4c8b32116a6c70e1cf0b8a5a466b1a45e7befe83 /pkgs/os-specific/linux/selinux-python
parentfca6647ac7c9eacc062df9852ead08bcad2f2007 (diff)
downloadnixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar.gz
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar.bz2
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar.lz
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar.xz
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.tar.zst
nixpkgs-51e95616d729f46221728c8a8bce250d08968884.zip
selinux-python: fix cross; strict deps
Diffstat (limited to 'pkgs/os-specific/linux/selinux-python')
-rw-r--r--pkgs/os-specific/linux/selinux-python/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/selinux-python/default.nix b/pkgs/os-specific/linux/selinux-python/default.nix
index 32ed5bc2e7d..b6394b3e1f6 100644
--- a/pkgs/os-specific/linux/selinux-python/default.nix
+++ b/pkgs/os-specific/linux/selinux-python/default.nix
@@ -4,7 +4,6 @@
 # this is python3 only because setools only supports python3
 
 with lib;
-with python3.pkgs;
 
 stdenv.mkDerivation rec {
   pname = "selinux-python";
@@ -17,9 +16,11 @@ stdenv.mkDerivation rec {
     sha256 = "1pjzsyay5535cxcjag7y7k193ajry0s0xc3dqv5905qd7cwval1n";
   };
 
-  nativeBuildInputs = [ wrapPython ];
-  buildInputs = [ libsepol python3 ];
-  propagatedBuildInputs = [ libselinux libsemanage setools ipy ];
+  strictDeps = true;
+
+  nativeBuildInputs = [ python3 python3.pkgs.wrapPython ];
+  buildInputs = [ libsepol ];
+  propagatedBuildInputs = [ libselinux libsemanage setools python3.pkgs.ipy ];
 
   postPatch = ''
     substituteInPlace sepolicy/Makefile --replace "echo --root" "echo --prefix"
@@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
     "LOCALEDIR=$(out)/share/locale"
     "BASHCOMPLETIONDIR=$(out)/share/bash-completion/completions"
     "PYTHON=python"
-    "PYTHONLIBDIR=$(out)/${python.sitePackages}"
+    "PYTHONLIBDIR=$(out)/${python3.sitePackages}"
     "LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
   ];