mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
libsemanage: remove 'with lib;'
This commit is contained in:
parent
740cf77809
commit
22078ef36e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user