diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-07-01 13:44:07 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-12-13 15:31:29 +0100 |
commit | df07922e3e26ead710bbcabec53f290feb12dd04 (patch) | |
tree | 88cf286132df44754b31d3e42f79d372a67c3243 /pkgs/servers/dns | |
parent | 01d022e16b0ec28cf531d6280781248238a2eda1 (diff) | |
download | nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar.gz nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar.bz2 nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar.lz nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar.xz nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.tar.zst nixlib-df07922e3e26ead710bbcabec53f290feb12dd04.zip |
knot-dns: init at 2.3.3
Only .lib is tested ATM.
Diffstat (limited to 'pkgs/servers/dns')
-rw-r--r-- | pkgs/servers/dns/knot-dns/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/servers/dns/knot-dns/default.nix b/pkgs/servers/dns/knot-dns/default.nix new file mode 100644 index 000000000000..62343666729c --- /dev/null +++ b/pkgs/servers/dns/knot-dns/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, pkgconfig, gnutls, jansson, liburcu, lmdb, libcap_ng, libidn +, systemd, nettle, libedit }: + +# Note: ATM only the libraries have been tested in nixpkgs. +stdenv.mkDerivation rec { + name = "knot-dns-${version}"; + version = "2.3.3"; + + src = fetchurl { + url = "http://secure.nic.cz/files/knot-dns/knot-${version}.tar.xz"; + sha256 = "a929bce3b957a81776b1db7b43b0e4473339bf16be8dbba5abb4b0593bf43c94"; + }; + + outputs = [ "bin" "out" "dev" ]; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ + gnutls jansson liburcu lmdb libcap_ng libidn + systemd nettle libedit + # without sphinx &al. for developer documentation + ]; + + enableParallelBuilding = true; + + CFLAGS = [ "-DNDEBUG" ]; + + #doCheck = true; problems in combination with dynamic linking + + postInstall = ''rm -r "$out"/var''; + + meta = with stdenv.lib; { + description = "Authoritative-only DNS server from .cz domain registry"; + homepage = https://knot-dns.cz; + license = licenses.gpl3Plus; + platforms = platforms.unix; + maintainers = [ maintainers.vcunat ]; + }; +} + |