This commit is contained in:
Benson Chu 2024-07-14 18:12:36 -05:00
parent d55ea4953e
commit 4d64ef3eea

View file

@ -3,7 +3,11 @@ inputs:
(final: prev: { (final: prev: {
mps-debug = prev.mps.overrideAttrs (old: { mps-debug = prev.mps.overrideAttrs (old: {
pname = old.pname + "-debug"; pname = old.pname + "-debug";
env.NIX_CFLAGS_COMPILE = old.env.NIX_CFLAGS_COMPILE + " -g -DCONFIG_VAR_COOL"; # Need to do this to patch dwarf information. For some reason,
# stdenv copies the source into /build/source, and then builds
# from there, leaving all the dwarf information hanging.
env.NIX_CFLAGS_COMPILE =
old.env.NIX_CFLAGS_COMPILE + " " + "-fdebug-prefix-map=/build/source=${old.src}";
dontStrip = true; dontStrip = true;
}); });
}) })