nsd: remove references to -dev store paths

This drops 4 paths from the closure, which saves about 3.7 MiB in nsd's
closure size.
This commit is contained in:
Ruud van Asseldonk
2026-07-07 15:11:11 +02:00
parent 58fb9c25f9
commit 2466716834
+6
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
removeReferencesTo,
fstrm,
libevent,
openssl,
@@ -51,6 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
pkg-config
removeReferencesTo
]
++ lib.optionals withDnstap [ protobuf ];
@@ -96,6 +98,10 @@ stdenv.mkDerivation (finalAttrs: {
"--with-configdir=etc/nsd"
];
postFixup = ''
find "$out" -type f -exec remove-references-to -t ${openssl.dev} -t ${libevent.dev} '{}' +
'';
passthru.tests = {
inherit (nixosTests) nsd;
};