diff --git a/pkgs/by-name/pd/pdns/package.nix b/pkgs/by-name/pd/pdns/package.nix index e1ee413a8e2e..6f125cb1c035 100644 --- a/pkgs/by-name/pd/pdns/package.nix +++ b/pkgs/by-name/pd/pdns/package.nix @@ -24,11 +24,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "pdns"; - version = "4.9.8"; + version = "5.0.0"; src = fetchurl { url = "https://downloads.powerdns.com/releases/pdns-${finalAttrs.version}.tar.bz2"; - hash = "sha256-GAtmrjMtMWaWjgE7/3y/bwxyhp1r5pfbdKAt86xuipE="; + hash = "sha256-DczjVdl6mazvwdRdY8EX2VIUmGfceYMjb378ngQbCjA="; }; # redact configure flags from version output to reduce closure size patches = [ ./version.patch ]; @@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.enableFeature stdenv.hostPlatform.is32bit "experimental-64bit-time_t-support-on-glibc") (lib.enableFeature false "silent-rules") (lib.enableFeature true "dns-over-tls") - (lib.enableFeature true "unit-tests") + (lib.enableFeature finalAttrs.finalPackage.doCheck "unit-tests") (lib.enableFeature true "reproducible") (lib.enableFeature true "tools") (lib.enableFeature true "ixfrdist") diff --git a/pkgs/by-name/pd/pdns/version.patch b/pkgs/by-name/pd/pdns/version.patch index 185d07028833..62d9298137b8 100644 --- a/pkgs/by-name/pd/pdns/version.patch +++ b/pkgs/by-name/pd/pdns/version.patch @@ -1,13 +1,11 @@ -diff --git a/pdns/version.cc b/pdns/version.cc -index d8f5d40..1368481 100644 --- a/pdns/version.cc +++ b/pdns/version.cc -@@ -155,7 +155,7 @@ void showBuildConfiguration() - #ifdef PDNS_CONFIG_ARGS +@@ -180,7 +180,7 @@ string getBuildConfiguration() #define double_escape(s) #s #define escape_quotes(s) double_escape(s) -- g_log<