about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
authorAlan Pearce2024-05-25 02:31:40 +0200
committerAlan Pearce2024-05-25 02:31:40 +0200
commitfb07320a12f83ffaf80bf3c0aca94a720f865201 (patch)
treefb36a9853c19c1549ba63f2b5c2ca7b0c90a76ff /nix
parent4c4b980bff860dda725253438b499245338161df (diff)
downloadsearchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.lz
searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.zst
searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.zip
build: just use nix version as internal version
Diffstat (limited to 'nix')
-rw-r--r--nix/package.nix10
-rw-r--r--nix/pre-commit-checks.nix2
2 files changed, 2 insertions, 10 deletions
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;
diff --git a/nix/pre-commit-checks.nix b/nix/pre-commit-checks.nix
index 5f62494..c3c0f23 100644
--- a/nix/pre-commit-checks.nix
+++ b/nix/pre-commit-checks.nix
@@ -107,7 +107,7 @@ rec {
       entry =
         let
           script = pkgs.writeShellScript "generate-default-config" ''
-            ${pkgs.wgo}/bin/wgo run -exit searchix.go --print-default-config > defaults.toml
+            ${pkgs.wgo}/bin/wgo run -exit ./cmd/searchix-web --print-default-config > defaults.toml
           '';
         in
         builtins.toString script;