netdata: fix withDebug build

This commit is contained in:
Wout Mertens
2023-03-04 23:38:19 +01:00
parent 7687b4e3e1
commit ea0ab0b07c
+2 -1
View File
@@ -65,8 +65,9 @@ stdenv.mkDerivation rec {
# 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 ];
disallowedReferences = if withDebug then [] else [ zlib.dev ];
donStrip = withDebug;
env.NIX_CFLAGS_COMPILE = lib.optionalString withDebug "-O1 -ggdb -DNETDATA_INTERNAL_CHECKS=1";
postInstall = ''