selinux-python: fix cross; strict deps

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