hyprshell: wrap program

add gcc to path and hyprland into include path to build plugin during runtime
This commit is contained in:
Enrico Stemmer
2025-10-05 15:28:46 +02:00
parent ffa0aa18ae
commit 611c779124
+17
View File
@@ -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";