From fc49bc19edd8e9eaea703c795395c2f78354ba80 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 15 Mar 2022 11:13:23 +0800 Subject: [PATCH] powerdns: redact configure flags from version output to reduce closure size --- pkgs/servers/dns/powerdns/default.nix | 2 ++ pkgs/servers/dns/powerdns/version.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/servers/dns/powerdns/version.patch diff --git a/pkgs/servers/dns/powerdns/default.nix b/pkgs/servers/dns/powerdns/default.nix index 4f1913e322a6..ff057b48bd54 100644 --- a/pkgs/servers/dns/powerdns/default.nix +++ b/pkgs/servers/dns/powerdns/default.nix @@ -11,6 +11,8 @@ stdenv.mkDerivation rec { url = "https://downloads.powerdns.com/releases/pdns-${version}.tar.bz2"; sha256 = "sha256-eRKxSIfWKEUYX3zktH21gOqnuLiX3LHJVV3+D6xe+uM="; }; + # redact configure flags from version output to reduce closure size + patches = [ ./version.patch ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ diff --git a/pkgs/servers/dns/powerdns/version.patch b/pkgs/servers/dns/powerdns/version.patch new file mode 100644 index 000000000000..185d07028833 --- /dev/null +++ b/pkgs/servers/dns/powerdns/version.patch @@ -0,0 +1,13 @@ +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 + #define double_escape(s) #s + #define escape_quotes(s) double_escape(s) +- g_log<