nixpkgs/pkgs/servers/dns/powerdns/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

53 lines
1.5 KiB
Nix

{ stdenv, fetchurl, pkgconfig
, boost, libyamlcpp, libsodium, sqlite, protobuf, botan2
, mysql57, postgresql, lua, openldap, geoip, curl, opendbx, unixODBC
}:
stdenv.mkDerivation rec {
name = "powerdns-${version}";
version = "4.1.3";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2";
sha256 = "1bh1qdgw415ax542123b6isri1jh4mbf2i9i1yffkfk0xmyv79cs";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
boost mysql57.connector-c postgresql lua openldap sqlite protobuf geoip
libyamlcpp libsodium curl opendbx unixODBC botan2
];
patches = [
# checksum type not found, maybe a dependency is to old?
./skip-sha384-test.patch
];
# nix destroy with-modules arguments, when using configureFlags
preConfigure = ''
configureFlagsArray=(
"--with-modules=bind gmysql geoip godbc gpgsql gsqlite3 ldap lua mydns opendbx pipe random remote"
--with-sqlite3
--with-socketdir=/var/lib/powerdns
--enable-libsodium
--enable-botan
--enable-tools
--disable-dependency-tracking
--disable-silent-rules
--enable-reproducible
--enable-unit-tests
)
'';
doCheck = true;
meta = with stdenv.lib; {
description = "Authoritative DNS server";
homepage = https://www.powerdns.com;
platforms = platforms.linux;
# cannot find postgresql libs on macos x
license = licenses.gpl2;
maintainers = with maintainers; [ mic92 disassembler ];
};
}