diff --git a/pkgs/servers/dns/pdns/default.nix b/pkgs/servers/dns/pdns/default.nix index 79d4144c82b0..b41e4df5242a 100644 --- a/pkgs/servers/dns/pdns/default.nix +++ b/pkgs/servers/dns/pdns/default.nix @@ -1,28 +1,61 @@ -{ lib, stdenv, fetchurl, pkg-config, nixosTests -, boost, yaml-cpp, libsodium, sqlite, protobuf, openssl, systemd -, mariadb-connector-c, postgresql, lua, openldap, geoip, curl, unixODBC, lmdb, tinycdb +{ lib +, stdenv +, fetchurl +, pkg-config +, nixosTests +, boost +, yaml-cpp +, libsodium +, sqlite +, protobuf +, openssl +, systemd +, mariadb-connector-c +, postgresql +, lua +, openldap +, geoip +, curl +, unixODBC +, lmdb +, tinycdb }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "pdns"; - version = "4.7.4"; + version = "4.8.0"; src = fetchurl { - url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2"; - hash = "sha256-dGndgft98RGX9JY4+knO/5+XMiX8j5xxYLC/wAoudHE="; + url = "https://downloads.powerdns.com/releases/pdns-${finalAttrs.version}.tar.bz2"; + hash = "sha256-YalruviwykmpIloiVLlEPE/44FDTN0N9ha9N6InhASc="; }; # redact configure flags from version output to reduce closure size patches = [ ./version.patch ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ - boost mariadb-connector-c postgresql lua openldap sqlite protobuf geoip - yaml-cpp libsodium curl unixODBC openssl systemd lmdb tinycdb + boost + mariadb-connector-c + postgresql + lua + openldap + sqlite + protobuf + geoip + yaml-cpp + libsodium + curl + unixODBC + openssl + systemd + lmdb + tinycdb ]; # Configure phase requires 64-bit time_t even on 32-bit platforms. env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.is32bit [ - "-D_TIME_BITS=64" "-D_FILE_OFFSET_BITS=64" + "-D_TIME_BITS=64" + "-D_FILE_OFFSET_BITS=64" ]); configureFlags = [ @@ -61,4 +94,4 @@ stdenv.mkDerivation rec { license = licenses.gpl2; maintainers = with maintainers; [ mic92 disassembler nickcao ]; }; -} +})