mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 05:05:59 +01:00
Nix: build aquamarine and hyprutils in debug when using hyprland-debug
This commit is contained in:
parent
86a3d41051
commit
ed729b4131
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue