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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user