summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <mihai@fufexan.net>2025-11-16 19:32:32 +0200
committerMihai Fufezan <mihai@fufexan.net>2025-11-16 20:33:01 +0200
commitd2d1613e4f13a099f5d7ce126fb5f0e40659743b (patch)
tree32fdf2c7b94f3d48a730c4596d3713e275fc3d4f
parentc7e14ecd301980d440e8ecb6ea502fbb60802474 (diff)
Nix: fix GIT_* env vars
-rw-r--r--nix/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 0fe57191..e69f2242 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -106,11 +106,13 @@ in
sed -i "s#@PREFIX@/##g" hyprland.pc.in
'';
- COMMITS = revCount;
- DATE = date;
- DIRTY = optionalString (commit == "") "dirty";
- HASH = commit;
- TAG = "v${trim (readFile "${finalAttrs.src}/VERSION")}";
+ env = {
+ GIT_COMMITS = revCount;
+ GIT_COMMIT_DATE = date;
+ GIT_COMMIT_HASH = commit;
+ GIT_DIRTY = if (commit == "") then "clean" else "dirty";
+ GIT_TAG = "v${trim (readFile "${finalAttrs.src}/VERSION")}";
+ };
depsBuildBuild = [
pkg-config