aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2024-07-18 21:27:03 +0300
committerMihai Fufezan <[email protected]>2024-07-21 19:24:17 +0300
commit928d1dd38a6e4a791d4a4374a4a3bf02311adbb2 (patch)
tree28ea69ce96fb5e9a8fb2ebfdf0742b042cc36661 /nix
parentfaa157e1626fb56b5f01ac0597518cc41bf1c40b (diff)
downloadHyprland-928d1dd38a6e4a791d4a4374a4a3bf02311adbb2.tar.gz
Hyprland-928d1dd38a6e4a791d4a4374a4a3bf02311adbb2.zip
CMake, Meson, Nix: replace props.json with VERSION
Diffstat (limited to 'nix')
-rw-r--r--nix/overlays.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/nix/overlays.nix b/nix/overlays.nix
index 9d100d51..d8979b45 100644
--- a/nix/overlays.nix
+++ b/nix/overlays.nix
@@ -3,13 +3,12 @@
lib,
inputs,
}: let
- props = builtins.fromJSON (builtins.readFile ../props.json);
-
mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
(builtins.substring 4 2 longDate)
(builtins.substring 6 2 longDate)
]);
+ version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
in {
# Contains what a user is most likely to care about:
# Hyprland itself, XDPH and the Share Picker.
@@ -33,7 +32,7 @@ in {
in {
hyprland = final.callPackage ./default.nix {
stdenv = final.gcc13Stdenv;
- version = "${props.version}+date=${date}_${self.shortRev or "dirty"}";
+ version = "${version}+date=${date}_${self.shortRev or "dirty"}";
commit = self.rev or "";
inherit date;
};