diff options
author | Mihai Fufezan <[email protected]> | 2024-11-07 10:52:12 +0200 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-11-07 10:52:12 +0200 |
commit | ed729b41319cc1129d5380d6e1055db60f01ea9d (patch) | |
tree | 3ad76b4c3023a836abd65376205aac91cc0e2939 | |
parent | 86a3d41051515f416f5eef2d4b6076ac2e8d16af (diff) | |
download | Hyprland-keepDebugInfo.tar.gz Hyprland-keepDebugInfo.zip |
Nix: build aquamarine and hyprutils in debug when using hyprland-debugkeepDebugInfo
-rw-r--r-- | nix/default.nix | 4 | ||||
-rw-r--r-- | nix/overlays.nix | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/nix/default.nix b/nix/default.nix index d463e271..29d31485 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -56,6 +56,7 @@ adapters = flatten [ stdenvAdapters.useMoldLinker + (lib.optional debug stdenvAdapters.keepDebugInfo) ]; customStdenv = foldl' (acc: adapter: adapter acc) stdenv adapters; @@ -147,9 +148,6 @@ in then "debugoptimized" else "release"; - # we want as much debug info as possible - dontStrip = debug; - mesonFlags = flatten [ (mapAttrsToList mesonEnable { "xwayland" = enableXWayland; diff --git a/nix/overlays.nix b/nix/overlays.nix index b1eb66ad..a7106315 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -40,7 +40,13 @@ in { inherit date; }; 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;}; # deprecated packages |