Nix: build aquamarine and hyprutils in debug when using hyprland-debug

This commit is contained in:
Mihai Fufezan 2024-11-07 10:52:12 +02:00
parent 86a3d41051
commit ed729b4131
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg
2 changed files with 8 additions and 4 deletions

View file

@ -56,6 +56,7 @@
adapters = flatten [ adapters = flatten [
stdenvAdapters.useMoldLinker stdenvAdapters.useMoldLinker
(lib.optional debug stdenvAdapters.keepDebugInfo)
]; ];
customStdenv = foldl' (acc: adapter: adapter acc) stdenv adapters; customStdenv = foldl' (acc: adapter: adapter acc) stdenv adapters;
@ -147,9 +148,6 @@ in
then "debugoptimized" then "debugoptimized"
else "release"; else "release";
# we want as much debug info as possible
dontStrip = debug;
mesonFlags = flatten [ mesonFlags = flatten [
(mapAttrsToList mesonEnable { (mapAttrsToList mesonEnable {
"xwayland" = enableXWayland; "xwayland" = enableXWayland;

View file

@ -40,7 +40,13 @@ in {
inherit date; inherit date;
}; };
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;}; hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
hyprland-debug = final.hyprland.override {debug = true;};
# Build major libs with debug to get as much info as possible in a stacktrace
hyprland-debug = final.hyprland.override {
aquamarine = final.aquamarine.override {debug = true;};
hyprutils = final.hyprutils.override {debug = true;};
debug = true;
};
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;}; hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
# deprecated packages # deprecated packages