diff options
author | Artturi <Artturin@artturin.com> | 2021-11-16 15:05:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 15:05:21 +0200 |
commit | f8f45750307cc93c6925f485c374818a51c8c5c6 (patch) | |
tree | b70a704fb953fd7d0f2f3d41ed00971953d11bc1 | |
parent | b44ab43db6a839bc4ba6af293c89489385480acb (diff) | |
parent | 51e95616d729f46221728c8a8bce250d08968884 (diff) |
Merge pull request #145742 from alyssais/selinux-python-cross
-rw-r--r-- | pkgs/os-specific/linux/selinux-python/default.nix | 11 |
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 32ed5bc2e7d64..b6394b3e1f6c8 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" ]; |