From 22078ef36e04d80993f3bc092429b261e45d3aca Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Tue, 13 Aug 2024 22:21:10 +0200 Subject: [PATCH] libsemanage: remove 'with lib;' --- pkgs/os-specific/linux/libsemanage/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/libsemanage/default.nix b/pkgs/os-specific/linux/libsemanage/default.nix index 966ac7c945b0..1c1d66432db4 100644 --- a/pkgs/os-specific/linux/libsemanage/default.nix +++ b/pkgs/os-specific/linux/libsemanage/default.nix @@ -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;