From cd9e9868bffca38280ae0534c1e5d9ea1f2a0b61 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Thu, 4 Dec 2025 13:31:12 +0200 Subject: [PATCH] hyprland: update env variables, add muparser dep --- pkgs/by-name/hy/hyprland/package.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/hy/hyprland/package.nix b/pkgs/by-name/hy/hyprland/package.nix index 4c0c200850e2..3fc9a173302d 100644 --- a/pkgs/by-name/hy/hyprland/package.nix +++ b/pkgs/by-name/hy/hyprland/package.nix @@ -27,6 +27,7 @@ libuuid, libxkbcommon, libgbm, + muparser, pango, pciutils, pkgconf, @@ -109,14 +110,16 @@ customStdenv.mkDerivation (finalAttrs: { sed -i "s#@PREFIX@/##g" hyprland.pc.in ''; - # variables used by generateVersion.sh script, and shown in `hyprctl version` - BRANCH = info.branch; - COMMITS = info.commit_hash; - DATE = info.date; - DIRTY = ""; - HASH = info.commit_hash; - MESSAGE = info.commit_message; - TAG = info.tag; + # variables used by CMake, and shown in `hyprctl version` + env = { + GIT_BRANCH = info.branch; + GIT_COMMITS = info.commit_hash; + GIT_COMMIT_DATE = info.date; + GIT_DIRTY = "clean"; + GIT_COMMIT_HASH = info.commit_hash; + GIT_COMMIT_MESSAGE = info.commit_message; + GIT_TAG = info.tag; + }; depsBuildBuild = [ # to find wayland-scanner when cross-compiling @@ -157,6 +160,7 @@ customStdenv.mkDerivation (finalAttrs: { libuuid libxkbcommon libgbm + muparser pango pciutils re2