diff options
author | Milan Pässler <milan@petabyte.dev> | 2021-04-11 00:12:49 +0200 |
---|---|---|
committer | Milan <milan@petabyte.dev> | 2021-04-11 09:46:14 +0200 |
commit | 5c12a81336e524ebcdc3e5513436b9be080be2ea (patch) | |
tree | a97b93cd76b6f6fd7e249b39ff4c2e6e149cda80 /pkgs/os-specific/linux/libselinux/default.nix | |
parent | fbb26ab53694b5370d11a160e313ebda145b19e4 (diff) | |
download | nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar.gz nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar.bz2 nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar.lz nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar.xz nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.tar.zst nixpkgs-5c12a81336e524ebcdc3e5513436b9be080be2ea.zip |
libselinux: fix build without python
Diffstat (limited to 'pkgs/os-specific/linux/libselinux/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/libselinux/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/libselinux/default.nix b/pkgs/os-specific/linux/libselinux/default.nix index 6582c6d8e8d..2c9239b2e7d 100644 --- a/pkgs/os-specific/linux/libselinux/default.nix +++ b/pkgs/os-specific/linux/libselinux/default.nix @@ -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 ''; |