From 611c77912492f7195223da1cd52835d4abf02b33 Mon Sep 17 00:00:00 2001 From: Enrico Stemmer Date: Sat, 4 Oct 2025 00:48:17 +0200 Subject: [PATCH] hyprshell: wrap program add gcc to path and hyprland into include path to build plugin during runtime --- pkgs/by-name/hy/hyprshell/package.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/by-name/hy/hyprshell/package.nix b/pkgs/by-name/hy/hyprshell/package.nix index 9a7b6fecc9c6..4f8324668b57 100644 --- a/pkgs/by-name/hy/hyprshell/package.nix +++ b/pkgs/by-name/hy/hyprshell/package.nix @@ -7,6 +7,8 @@ gtk4, gtk4-layer-shell, hyprland, + gcc, + pixman, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -32,6 +34,21 @@ rustPlatform.buildRustPackage (finalAttrs: { gtk4-layer-shell ]; + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH : '${lib.makeBinPath [ gcc ]}' + --prefix CPATH : '${ + lib.makeIncludePath ( + hyprland.buildInputs + ++ [ + hyprland + pixman + ] + ) + }' + ) + ''; + meta = { description = "Modern GTK4-based window switcher and application launcher for Hyprland"; mainProgram = "hyprshell";