libsemanage: fix cross; strict deps

PYPREFIX is passed to pkg-config.
This commit is contained in:
Alyssa Ross 2021-11-12 11:01:57 +00:00
parent 6aa376ea9b
commit 9d144b3d78

View file

@ -16,9 +16,11 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "man" ] ++ optional enablePython "py";
nativeBuildInputs = [ bison flex pkg-config ];
strictDeps = true;
nativeBuildInputs = [ bison flex pkg-config ] ++ optional enablePython swig;
buildInputs = [ libsepol libselinux bzip2 audit ]
++ optionals enablePython [ swig python ];
++ optional enablePython python;
makeFlags = [
"PREFIX=$(out)"
@ -26,6 +28,7 @@ stdenv.mkDerivation rec {
"MAN3DIR=$(man)/share/man/man3"
"MAN5DIR=$(man)/share/man/man5"
"PYTHON=python"
"PYPREFIX=python"
"PYTHONLIBDIR=$(py)/${python.sitePackages}"
"DEFAULT_SEMANAGE_CONF_LOCATION=$(out)/etc/selinux/semanage.conf"
];