From bff54d85d00692af5bc89db30ded40dd7641dd41 Mon Sep 17 00:00:00 2001 From: jsecchiero Date: Fri, 19 Jan 2024 20:45:42 +0100 Subject: [PATCH] Nix: fix debug build for nix `nix build .#hyprland-debug` will now produce symbols for debug prupose --- nix/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/default.nix b/nix/default.nix index 751457ca..7db59b44 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -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 = [