libsemanage: remove 'with lib;'

This commit is contained in:
Felix Buehler 2024-08-13 22:21:10 +02:00 committed by Valentin Gagarin
parent 740cf77809
commit 22078ef36e

View File

@ -2,8 +2,6 @@
, enablePython ? true, swig ? null, python ? null
}:
with lib;
stdenv.mkDerivation rec {
pname = "libsemanage";
version = "3.7";
@ -14,13 +12,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-4WbK4ppBfasAjbnKCHQCPzU6MBewdpOgNu2XSH7aNbE=";
};
outputs = [ "out" "dev" "man" ] ++ optional enablePython "py";
outputs = [ "out" "dev" "man" ] ++ lib.optional enablePython "py";
strictDeps = true;
nativeBuildInputs = [ bison flex pkg-config ] ++ optional enablePython swig;
nativeBuildInputs = [ bison flex pkg-config ] ++ lib.optional enablePython swig;
buildInputs = [ libsepol libselinux bzip2 audit ]
++ optional enablePython python;
++ lib.optional enablePython python;
makeFlags = [
"PREFIX=$(out)"
@ -43,7 +41,7 @@ stdenv.mkDerivation rec {
# cc1: all warnings being treated as errors
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=clobbered" ];
installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ];
installTargets = [ "install" ] ++ lib.optionals enablePython [ "install-pywrap" ];
enableParallelBuilding = true;