about summary refs log tree commit diff
path: root/pkgs/servers/dns/bind/default.nix
diff options
context:
space:
mode:
authorNicolas Dudebout <nicolas.dudebout@gmail.com>2018-06-09 19:43:13 -0400
committerxeji <36407913+xeji@users.noreply.github.com>2018-06-10 01:43:13 +0200
commit72fe3d7b082f646c5ce546a7a3304ad3ea990350 (patch)
tree0398b7ec41059a77c6454a649ccfdc418be76fd3 /pkgs/servers/dns/bind/default.nix
parent9ef30fd56a02872a6b33cb8c29d0f476ef0dbd05 (diff)
downloadnixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar.gz
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar.bz2
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar.lz
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar.xz
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.tar.zst
nixlib-72fe3d7b082f646c5ce546a7a3304ad3ea990350.zip
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)
Diffstat (limited to 'pkgs/servers/dns/bind/default.nix')
-rw-r--r--pkgs/servers/dns/bind/default.nix8
1 files 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"