mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-01 14:10:16 +01:00
Nix: fix GIT_* env vars
This commit is contained in:
parent
c7e14ecd30
commit
d2d1613e4f
1 changed files with 7 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue