netdata: fix withDebug build
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user