diff options
author | Mihai Fufezan <[email protected]> | 2024-07-21 20:54:57 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-09-05 21:26:12 +0300 |
commit | c80457be02e7b75b590e025708fad38d84c99026 (patch) | |
tree | cb217212896f190eae74f7c94c9447cb3133360b | |
parent | 4a42c5ed20a6852e5e51c0f3893024f3b5c03500 (diff) | |
download | Hyprland-c80457be02e7b75b590e025708fad38d84c99026.tar.gz Hyprland-c80457be02e7b75b590e025708fad38d84c99026.zip |
nix: add COMMITS var
-rw-r--r-- | nix/default.nix | 3 | ||||
-rw-r--r-- | nix/overlays.nix | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nix/default.nix b/nix/default.nix index e1a348b0..1c6a0113 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -39,6 +39,7 @@ wrapRuntimeDeps ? true, version ? "git", commit, + revCount, date, # deprecated flags enableNvidiaPatches ? false, @@ -73,7 +74,7 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov sed -i "s#@PREFIX@/##g" hyprland.pc.in ''; - COMMITS = commit; + COMMITS = revCount; DATE = date; DIRTY = lib.optionalString (commit == "") "dirty"; HASH = commit; diff --git a/nix/overlays.nix b/nix/overlays.nix index 36206f46..d6e078fa 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -34,6 +34,7 @@ in { stdenv = final.gcc14Stdenv; version = "${version}+date=${date}_${self.shortRev or "dirty"}"; commit = self.rev or ""; + revCount = self.sourceInfo.revCount or ""; inherit date; }; hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;}; |