diff options
| author | Kyren223 <kyren223@proton.me> | 2025-08-03 15:41:16 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-08-03 15:41:16 +0300 |
| commit | 3feffc0f77c5c525be15981791d948dc65784297 (patch) | |
| tree | 35265b56469dabb7fa65fc02e3f9fa16c0e60488 /flake.nix | |
| parent | 9913e614ec9ecfa73551c72813ef39f125b310f5 (diff) | |
Directly embedding version inside the app instead of injecting it at
build time, so there is always only one source of truth
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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}" ]; |
