From 4c4b980bff860dda725253438b499245338161df Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 May 2024 02:20:24 +0200 Subject: build: enable non-flake import --- nix/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix/package.nix') diff --git a/nix/package.nix b/nix/package.nix index 3426235..99eeb88 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -47,9 +47,9 @@ buildGoApplication { "-s" "-w" "-X" - "searchix/internal/config.CommitSHA=${self.rev or self.dirtyRev}" + "searchix/internal/config.CommitSHA=${self.rev or self.dirtyRev or "unknown"}" "-X" - "searchix/internal/config.ShortSHA=${self.shortRev or self.dirtyShortRev}" + "searchix/internal/config.ShortSHA=${self.shortRev or self.dirtyShortRev or "unknown"}" "-X" "main.buildVersion=${version}" ]; -- cgit 1.4.1