diff --git a/default.nix b/default.nix index 3367e51..223cbda 100644 --- a/default.nix +++ b/default.nix @@ -43,4 +43,11 @@ in stdenv.mkDerivation { modemmanager sofia_sip ]; + + # build for debug: + dontStrip = true; + env.mesonBuildType = "debugoptimized"; + env.NIX_CFLAGS_COMPILE = "-ggdb -Og -fno-omit-frame-pointer"; + # env.mesonBuildType = "debug"; + # env.NIX_CFLAGS_COMPILE = "-g -O0 -fno-omit-frame-pointer"; }