mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nsd: add package version 4.0.3
This commit is contained in:
parent
dceda93bd0
commit
e59c465103
34
pkgs/servers/dns/nsd/default.nix
Normal file
34
pkgs/servers/dns/nsd/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ config, stdenv, fetchurl, libevent, openssl
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "nsd-4.0.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.nlnetlabs.nl/downloads/nsd/${name}.tar.gz";
|
||||||
|
sha256 = "4bf05f2234e1b41899198aa1070f409201fc3c4980feef6567cd92c7074c4a8b";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libevent openssl ];
|
||||||
|
|
||||||
|
configureFlags =
|
||||||
|
let flag = state: flags: if state then map (x: "--enable-${x}") flags
|
||||||
|
else map (x: "--disable-${x}") flags;
|
||||||
|
in flag (config.nsd.bind8Stats or false) [ "bind8-stats" ]
|
||||||
|
++ flag (config.nsd.checking or false) [ "checking" ]
|
||||||
|
++ flag (config.nsd.ipv6 or true) [ "ipv6" ]
|
||||||
|
++ flag (config.nsd.mmap or false) [ "mmap" ]
|
||||||
|
++ flag (config.nsd.minimalResponses or true) [ "minimal-responses" ]
|
||||||
|
++ flag (config.nsd.nsec3 or true) [ "nsec3" ]
|
||||||
|
++ flag (config.nsd.ratelimit or false) [ "ratelimit" ]
|
||||||
|
++ flag (config.nsd.recvmmsg or false) [ "recvmmsg" ]
|
||||||
|
++ flag (config.nsd.rootServer or false) [ "root-server" ]
|
||||||
|
++ [ "--with-ssl=${openssl}" "--with-libevent=${libevent}" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Authoritative only, high performance, simple and open source name server.";
|
||||||
|
license = "BSD";
|
||||||
|
homepage = http://www.nlnetlabs.nl;
|
||||||
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
|
};
|
||||||
|
}
|
@ -6679,6 +6679,8 @@ let
|
|||||||
|
|
||||||
ngircd = callPackage ../servers/irc/ngircd { };
|
ngircd = callPackage ../servers/irc/ngircd { };
|
||||||
|
|
||||||
|
nsd = callPackage ../servers/dns/nsd { };
|
||||||
|
|
||||||
opensmtpd = callPackage ../servers/mail/opensmtpd { };
|
opensmtpd = callPackage ../servers/mail/opensmtpd { };
|
||||||
|
|
||||||
petidomo = callPackage ../servers/mail/petidomo { };
|
petidomo = callPackage ../servers/mail/petidomo { };
|
||||||
|
Loading…
Reference in New Issue
Block a user