diff options
| -rw-r--r-- | embeds/embeds.go | 5 | ||||
| -rw-r--r-- | flake.nix | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/embeds/embeds.go b/embeds/embeds.go index 8bb7787..419efec 100644 --- a/embeds/embeds.go +++ b/embeds/embeds.go @@ -46,3 +46,8 @@ var ( PrivacyPolicy atomic.Value TosPrivacyHash atomic.Value ) + +func init() { + // Strip \n from file import + Version = Version[:len(Version)-1] +} @@ -21,7 +21,7 @@ pkgs = import inputs.nixpkgs { inherit system overlays; }; - version = (builtins.readFile ./embeds/VERSION); + version = pkgs.lib.strings.removeSuffix "\n" (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; |
