libsemanage: fix cross; strict deps
PYPREFIX is passed to pkg-config.
This commit is contained in:
parent
6aa376ea9b
commit
9d144b3d78
1 changed files with 5 additions and 2 deletions
|
@ -16,9 +16,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ] ++ optional enablePython "py";
|
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 ]
|
buildInputs = [ libsepol libselinux bzip2 audit ]
|
||||||
++ optionals enablePython [ swig python ];
|
++ optional enablePython python;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=$(out)"
|
"PREFIX=$(out)"
|
||||||
|
@ -26,6 +28,7 @@ stdenv.mkDerivation rec {
|
||||||
"MAN3DIR=$(man)/share/man/man3"
|
"MAN3DIR=$(man)/share/man/man3"
|
||||||
"MAN5DIR=$(man)/share/man/man5"
|
"MAN5DIR=$(man)/share/man/man5"
|
||||||
"PYTHON=python"
|
"PYTHON=python"
|
||||||
|
"PYPREFIX=python"
|
||||||
"PYTHONLIBDIR=$(py)/${python.sitePackages}"
|
"PYTHONLIBDIR=$(py)/${python.sitePackages}"
|
||||||
"DEFAULT_SEMANAGE_CONF_LOCATION=$(out)/etc/selinux/semanage.conf"
|
"DEFAULT_SEMANAGE_CONF_LOCATION=$(out)/etc/selinux/semanage.conf"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue