From 72fe3d7b082f646c5ce546a7a3304ad3ea990350 Mon Sep 17 00:00:00 2001 From: Nicolas Dudebout Date: Sat, 9 Jun 2018 19:43:13 -0400 Subject: [PATCH] bind: compile with libcap (#41755) Additionally: + split native and other build inputs + alphabetically order dependencies + explicitly disable libjson support (the configure script looks for it in /usr, /usr/local, and /opt/local) --- pkgs/servers/dns/bind/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index 2b1830ea6797..d424d510cd28 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2 +{ stdenv, lib, fetchurl +, perl +, libcap, libtool, libxml2, openssl , enablePython ? false, python3 ? null , enableSeccomp ? false, libseccomp ? null, buildPackages }: @@ -22,7 +24,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch; nativeBuildInputs = [ perl ]; - buildInputs = [ openssl libtool libxml2 ] + buildInputs = [ libcap libtool libxml2 openssl ] ++ lib.optional enableSeccomp libseccomp ++ lib.optional enablePython python3; @@ -32,6 +34,7 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" + "--with-libcap=${libcap.dev}" "--with-libtool" "--with-libxml2=${libxml2.dev}" "--with-openssl=${openssl.dev}" @@ -43,6 +46,7 @@ stdenv.mkDerivation rec { "--without-idn" "--without-idnlib" "--without-lmdb" + "--without-libjson" "--without-pkcs11" "--without-purify" "--with-randomdev=/dev/random"