about summary refs log tree commit diff
path: root/pkgs/tools/system/netdata
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-06-01 16:08:01 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-06-01 16:08:01 +0100
commit275f9025ca55e2f3f2c65a94ea9557be02a11cd9 (patch)
tree87c072f9043b1cffadd1564d9dcac5be465a9609 /pkgs/tools/system/netdata
parent06e6b81e982a74501855c49abaf5e475a2fb3b50 (diff)
downloadnixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar.gz
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar.bz2
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar.lz
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar.xz
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.tar.zst
nixlib-275f9025ca55e2f3f2c65a94ea9557be02a11cd9.zip
netdata: use disallowedReferences to guard against closure regressions
Suggested by Mindavi in https://github.com/NixOS/nixpkgs/pull/175719#issuecomment-1143586412.
Diffstat (limited to 'pkgs/tools/system/netdata')
-rw-r--r--pkgs/tools/system/netdata/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix
index dd50e48f0735..24c791bed4a4 100644
--- a/pkgs/tools/system/netdata/default.nix
+++ b/pkgs/tools/system/netdata/default.nix
@@ -55,6 +55,13 @@ in stdenv.mkDerivation rec {
     ./skip-CONFIGURE_COMMAND.patch
   ];
 
+  # Guard against unused buld-time development inputs in closure. Without
+  # the ./skip-CONFIGURE_COMMAND.patch patch the closure retains inputs up
+  # to bootstrap tools:
+  #   https://github.com/NixOS/nixpkgs/pull/175719
+  # We pick zlib.dev as a simple canary package with pkg-config input.
+  disallowedReferences = [ zlib.dev ];
+
   NIX_CFLAGS_COMPILE = optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1";
 
   postInstall = ''