nixos-config/common/overlays.nix
2024-09-06 13:33:13 -05:00

13 lines
429 B
Nix

inputs:
[
(final: prev: {
mps-debug = prev.mps.overrideAttrs (old: {
pname = old.pname + "-debug";
# 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 = "-fdebug-prefix-map=/build/source=${old.src}";
dontStrip = true;
});
})
]