diff options
author | Vladimír Čunát <v@cunat.cz> | 2020-09-08 12:00:18 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2020-09-08 12:16:56 +0200 |
commit | 63b63537820bd0fd54188d6f1a3e515ca4a73a73 (patch) | |
tree | a19118e75842e9e681add1628a66b2a724f5bc39 /pkgs/servers/dns | |
parent | 722c9a2cc66acfaca6fe67b47b1c40bdf9c1dca1 (diff) |
knot-dns: Remove unnecessary runtime dependencies
Closure size: 261 -> 171 MiB. (Only .bin was affected.)
Diffstat (limited to 'pkgs/servers/dns')
-rw-r--r-- | pkgs/servers/dns/knot-dns/default.nix | 1 | ||||
-rw-r--r-- | pkgs/servers/dns/knot-dns/runtime-deps.patch | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/servers/dns/knot-dns/default.nix b/pkgs/servers/dns/knot-dns/default.nix index d546b07148b2..de7f2cdfe518 100644 --- a/pkgs/servers/dns/knot-dns/default.nix +++ b/pkgs/servers/dns/knot-dns/default.nix @@ -26,6 +26,7 @@ stdenv.mkDerivation rec { # Don't try to create directories like /var/lib/knot at build time. # They are later created from NixOS itself. ./dont-create-run-time-dirs.patch + ./runtime-deps.patch ]; nativeBuildInputs = [ pkgconfig autoreconfHook ]; diff --git a/pkgs/servers/dns/knot-dns/runtime-deps.patch b/pkgs/servers/dns/knot-dns/runtime-deps.patch new file mode 100644 index 000000000000..19fc9cd07b18 --- /dev/null +++ b/pkgs/servers/dns/knot-dns/runtime-deps.patch @@ -0,0 +1,14 @@ +Remove unnecessary runtime dependencies. + +`knotc status configure` shows summary from the configure script, +but that contains also references like include paths. +Filter these at least in a crude way (whole lines). +--- a/configure.ac ++++ b/configure.ac +@@ -766,5 +766,5 @@ result_msg_base=" Knot DNS $VERSION + +-result_msg_esc=$(echo -n "$result_msg_base" | sed '$!s/$/\\n/' | tr -d '\n') ++result_msg_esc=$(echo -n "$result_msg_base" | grep -Fv "$NIX_STORE" | sed '$!s/$/\\n/' | tr -d '\n') + + AC_DEFINE_UNQUOTED([CONFIGURE_SUMMARY],["$result_msg_esc"],[Configure summary]) + |