Nix: fix debug build for nix

`nix build .#hyprland-debug` will now produce symbols for debug
prupose
This commit is contained in:
jsecchiero 2024-01-19 20:45:42 +01:00
parent 4d403dac32
commit bff54d85d0
No known key found for this signature in database

View file

@ -96,12 +96,15 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
then "debug"
else "release";
dontStrip = debug;
mesonAutoFeatures = "disabled";
mesonFlags = builtins.concatLists [
(lib.optional enableXWayland "-Dxwayland=enabled")
(lib.optional legacyRenderer "-Dlegacy_renderer=enabled")
(lib.optional withSystemd "-Dsystemd=enabled")
(lib.optional debug "-Ddebug=${if debug then "true" else "false"}")
];
patches = [