From fb07320a12f83ffaf80bf3c0aca94a720f865201 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 May 2024 02:31:40 +0200 Subject: build: just use nix version as internal version --- nix/package.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'nix/package.nix') diff --git a/nix/package.nix b/nix/package.nix index 99eeb88..c45599a 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -11,12 +11,8 @@ ) , buildGoApplication ? pkgs.buildGoApplication , css -, self -, testers }: let - inherit (builtins) concatStringsSep match; - version = "0.1.4"; in buildGoApplication { @@ -47,11 +43,7 @@ buildGoApplication { "-s" "-w" "-X" - "searchix/internal/config.CommitSHA=${self.rev or self.dirtyRev or "unknown"}" - "-X" - "searchix/internal/config.ShortSHA=${self.shortRev or self.dirtyShortRev or "unknown"}" - "-X" - "main.buildVersion=${version}" + "searchix/internal/config.Version=${version}" ]; modules = ../gomod2nix.toml; -- cgit 1.4.1