1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/servers/dns/knot-dns/default.nix
Vladimír Čunát df07922e3e
knot-dns: init at 2.3.3
Only .lib is tested ATM.
2016-12-13 15:31:29 +01:00

40 lines
1.1 KiB
Nix

{ 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 ];
};
}