knot-dns: Remove unnecessary runtime dependencies

Closure size: 261 -> 171 MiB.  (Only .bin was affected.)
This commit is contained in:
Vladimír Čunát 2020-09-08 12:00:18 +02:00
parent 722c9a2cc6
commit 63b6353782
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 15 additions and 0 deletions

View File

@ -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 ];

View File

@ -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])