about summary refs log tree commit diff stats
path: root/nix/package.nix
diff options
context:
space:
mode:
authorAlan Pearce2024-05-25 02:20:24 +0200
committerAlan Pearce2024-05-25 02:20:24 +0200
commit4c4b980bff860dda725253438b499245338161df (patch)
tree3911cc0a642818c91a24e0fa1fce78315fc2435d /nix/package.nix
parente9eed3ddc4229db707cccb30beddde15044eff16 (diff)
downloadsearchix-4c4b980bff860dda725253438b499245338161df.tar.lz
searchix-4c4b980bff860dda725253438b499245338161df.tar.zst
searchix-4c4b980bff860dda725253438b499245338161df.zip
build: enable non-flake import
Diffstat (limited to 'nix/package.nix')
-rw-r--r--nix/package.nix4
1 files changed, 2 insertions, 2 deletions
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}"
   ];