From bb0173418cb92402aa30f19c796974dd51e1afdc Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 28 Jan 2025 13:10:36 -0600 Subject: [PATCH] xdg-desktop-portal-hyprland: add debug flag --- .../hyprwm/xdg-desktop-portal-hyprland/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix index 75d3e1d6ef9c..23cb13795695 100644 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix +++ b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix @@ -24,6 +24,7 @@ wayland, wayland-protocols, wayland-scanner, + debug ? false, }: gcc14Stdenv.mkDerivation (finalAttrs: { pname = "xdg-desktop-portal-hyprland"; @@ -65,6 +66,10 @@ gcc14Stdenv.mkDerivation (finalAttrs: { wayland-scanner ]; + cmakeBuildType = if debug then "Debug" else "RelWithDebInfo"; + + dontStrip = debug; + dontWrapQtApps = true; postInstall = ''