From 10a4365f7d2674d0e9180a3bddf535acb95eae70 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Fri, 6 Dec 2024 10:16:18 +0200 Subject: [PATCH] Nix: create TAG info from version --- nix/default.nix | 5 +++-- 1 file 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"; }; - } + })