diff options
author | Mihai Fufezan <[email protected]> | 2024-12-06 10:16:18 +0200 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-12-06 10:16:18 +0200 |
commit | 10a4365f7d2674d0e9180a3bddf535acb95eae70 (patch) | |
tree | cdc5a60457826a41d65ee558d50caec0b2e882a5 | |
parent | a7a6eedc2139564abc1fe09feee1ff32b53e1081 (diff) | |
download | Hyprland-10a4365f7d2674d0e9180a3bddf535acb95eae70.tar.gz Hyprland-10a4365f7d2674d0e9180a3bddf535acb95eae70.zip |
Nix: create TAG info from version
-rw-r--r-- | nix/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/default.nix b/nix/default.nix index dbe4879e..3a84ccc8 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -65,7 +65,7 @@ in assert assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been removed."; assert assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` has been removed."; assert assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland"; - customStdenv.mkDerivation { + customStdenv.mkDerivation (finalAttrs: { pname = "hyprland${optionalString debug "-debug"}"; inherit version; @@ -89,6 +89,7 @@ in DATE = date; DIRTY = optionalString (commit == "") "dirty"; HASH = commit; + TAG = "v${builtins.readFile "${finalAttrs.src}/VERSION"}"; depsBuildBuild = [ pkg-config @@ -182,4 +183,4 @@ in platforms = lib.platforms.linux; mainProgram = "Hyprland"; }; - } + }) |