From 3feffc0f77c5c525be15981791d948dc65784297 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 3 Aug 2025 15:41:16 +0300 Subject: Directly embedding version inside the app instead of injecting it at build time, so there is always only one source of truth --- flake.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 357621a..10ea031 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ pkgs = import inputs.nixpkgs { inherit system overlays; }; - version = (builtins.readFile ./VERSION); + version = (builtins.readFile ./embeds/VERSION); buildDate = toString self.lastModified; commit = if (builtins.hasAttr "rev" self) then (builtins.substring 0 7 self.rev) else "unknown"; # vendorHash = pkgs.lib.fakeHash; @@ -37,7 +37,6 @@ in (if (debug-tracing) then pkgs.lib.sources.trace source-files else source-files); ldflags = [ - "-X github.com/kyren223/eko/embeds.Version=${version}" "-X github.com/kyren223/eko/embeds.Commit=${commit}" "-X github.com/kyren223/eko/embeds.BuildDate=${buildDate}" ]; -- cgit v1.3.1