libselinux: fix build without python

This commit is contained in:
Milan Pässler 2021-04-11 00:12:49 +02:00 committed by Milan
parent fbb26ab536
commit 5c12a81336

View File

@ -35,15 +35,16 @@ stdenv.mkDerivation rec {
"MAN3DIR=$(man)/share/man/man3"
"MAN5DIR=$(man)/share/man/man5"
"MAN8DIR=$(man)/share/man/man8"
"PYTHON=${python3.pythonForBuild}/bin/python"
"PYTHONLIBDIR=$(py)/${python3.sitePackages}"
"SBINDIR=$(bin)/sbin"
"SHLIBDIR=$(out)/lib"
"LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a"
] ++ optionals enablePython [
"PYTHON=${python3.pythonForBuild.interpreter}"
"PYTHONLIBDIR=$(py)/${python3.sitePackages}"
];
preInstall = ''
preInstall = optionalString enablePython ''
mkdir -p $py/${python3.sitePackages}/selinux
'';