nixpkgs/pkgs/servers/dns/powerdns/default.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, nixosTests
2020-10-09 01:14:11 +01:00
, boost, libyamlcpp, libsodium, sqlite, protobuf, openssl, systemd
2020-10-15 01:01:42 +01:00
, mysql57, postgresql, lua, openldap, geoip, curl, unixODBC
2016-09-17 22:30:27 +01:00
}:
stdenv.mkDerivation rec {
pname = "powerdns";
2020-10-15 01:01:42 +01:00
version = "4.3.1";
2016-09-17 22:30:27 +01:00
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
2020-10-15 01:01:42 +01:00
sha256 = "0if27znz528sir52y9i4gcfhdsym7yxiwjgffy9lpscf1426q56m";
2016-09-17 22:30:27 +01:00
};
nativeBuildInputs = [ pkgconfig ];
2018-02-17 11:47:20 +00:00
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
2020-10-15 01:01:42 +01:00
libyamlcpp libsodium curl unixODBC openssl systemd
2018-02-17 11:47:20 +00:00
];
2016-09-17 22:30:27 +01:00
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
configureFlagsArray=(
2020-10-15 01:01:42 +01:00
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua2 pipe random remote"
2016-09-17 22:30:27 +01:00
--with-sqlite3
--with-libcrypto=${openssl.dev}
2020-10-09 00:53:48 +01:00
--with-libsodium
2016-09-17 22:30:27 +01:00
--enable-tools
--disable-dependency-tracking
--disable-silent-rules
--enable-reproducible
--enable-unit-tests
2020-10-09 01:14:11 +01:00
--enable-systemd
2016-09-17 22:30:27 +01:00
)
'';
2018-02-17 11:47:20 +00:00
enableParallelBuilding = true;
2018-02-17 11:47:20 +00:00
doCheck = true;
2016-09-17 22:30:27 +01:00
passthru.tests = {
nixos = nixosTests.powerdns;
};
2016-09-17 22:30:27 +01:00
meta = with stdenv.lib; {
description = "Authoritative DNS server";
homepage = "https://www.powerdns.com";
platforms = platforms.unix;
broken = stdenv.isDarwin;
2016-09-17 22:30:27 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ mic92 disassembler ];
2016-09-17 22:30:27 +01:00
};
}