pkgs/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 17:12:36 +07:00
parent 94f3683935
commit 8c5d37129f
916 changed files with 2510 additions and 2510 deletions
+6 -6
View File
@@ -19,17 +19,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ libpcap texinfo ]
++ stdenv.lib.optionals gnupgSupport [ gnupg gpgme.dev ]
++ stdenv.lib.optionals wgetSupport [ wget ];
++ lib.optionals gnupgSupport [ gnupg gpgme.dev ]
++ lib.optionals wgetSupport [ wget ];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/run"
"--with-iptables=${iptables}/sbin/iptables"
(stdenv.lib.enableFeature buildServer "server")
(stdenv.lib.enableFeature buildClient "client")
(stdenv.lib.withFeatureAs wgetSupport "wget" "${wget}/bin/wget")
] ++ stdenv.lib.optionalString gnupgSupport [
(lib.enableFeature buildServer "server")
(lib.enableFeature buildClient "client")
(lib.withFeatureAs wgetSupport "wget" "${wget}/bin/wget")
] ++ lib.optionalString gnupgSupport [
"--with-gpgme"
"--with-gpgme-prefix=${gpgme.dev}"
"--with-gpg=${gnupg}"