Merge branch 'master' into feat/nsd/dnssec
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
{ stdenv, lib, fetchurl, openssl, libtool, perl, libxml2
|
||||
, enableSeccomp ? false, libseccomp ? null
|
||||
, enablePython ? false, python3 ? null }:
|
||||
, enablePython ? false, python3 ? null
|
||||
, enableSeccomp ? false, libseccomp ? null, buildPackages
|
||||
}:
|
||||
|
||||
assert enableSeccomp -> libseccomp != null;
|
||||
assert enablePython -> python3 != null;
|
||||
|
||||
let version = "9.11.2"; in
|
||||
let version = "9.12.1"; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bind-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.isc.org/isc/bind9/${version}/${name}.tar.gz";
|
||||
sha256 = "0yn7wgi2y8mpmvbjbkl4va7p0xsnn48m4yjx6ynb1hzp423asikz";
|
||||
sha256 = "043mjcw405qa0ghm5dkhfsq35gsy279724fz3mjqpr1mbi14dr0n";
|
||||
};
|
||||
|
||||
outputs = [ "out" "lib" "dev" "man" "dnsutils" "host" ];
|
||||
@@ -20,12 +21,15 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./dont-keep-configure-flags.patch ./remove-mkdir-var.patch ] ++
|
||||
stdenv.lib.optional stdenv.isDarwin ./darwin-openssl-linking-fix.patch;
|
||||
|
||||
buildInputs = [ openssl libtool perl libxml2 ]
|
||||
nativeBuildInputs = [ perl ];
|
||||
buildInputs = [ openssl libtool libxml2 ]
|
||||
++ lib.optional enableSeccomp libseccomp
|
||||
++ lib.optional enablePython python3;
|
||||
|
||||
STD_CDEFINES = [ "-DDIG_SIGCHASE=1" ]; # support +sigchase
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--with-libtool"
|
||||
@@ -38,8 +42,14 @@ stdenv.mkDerivation rec {
|
||||
"--without-gssapi"
|
||||
"--without-idn"
|
||||
"--without-idnlib"
|
||||
"--without-lmdb"
|
||||
"--without-pkcs11"
|
||||
"--without-purify"
|
||||
"--with-randomdev=/dev/random"
|
||||
"--with-ecdsa"
|
||||
"--with-gost"
|
||||
"--without-eddsa"
|
||||
"--with-aes"
|
||||
] ++ lib.optional enableSeccomp "--enable-seccomp";
|
||||
|
||||
postInstall = ''
|
||||
@@ -60,7 +70,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = http://www.isc.org/software/bind;
|
||||
description = "Domain name server";
|
||||
license = stdenv.lib.licenses.isc;
|
||||
license = stdenv.lib.licenses.mpl20;
|
||||
|
||||
maintainers = with stdenv.lib.maintainers; [viric peti];
|
||||
platforms = with stdenv.lib.platforms; unix;
|
||||
|
||||
Reference in New Issue
Block a user