about summary refs log tree commit diff
path: root/pkgs/development/tools/sq
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-12-26 20:06:49 -0500
committerfigsoda <figsoda@pm.me>2022-12-26 20:06:49 -0500
commitd38feecb89d11effbeaf3d183d68a7b56dbcf0f3 (patch)
tree54d23a3291378f7840d05031413b63283cac8d00 /pkgs/development/tools/sq
parent49ab84dbe74b0465c4f91e913a5af94b5b857054 (diff)
sq: fix build on darwin
Diffstat (limited to 'pkgs/development/tools/sq')
-rw-r--r--pkgs/development/tools/sq/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/tools/sq/default.nix b/pkgs/development/tools/sq/default.nix
index 95d32874ee365..d150332ae63e1 100644
--- a/pkgs/development/tools/sq/default.nix
+++ b/pkgs/development/tools/sq/default.nix
@@ -1,4 +1,5 @@
 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, sq }:
+
 buildGoModule rec {
   pname = "sq";
   version = "0.18.2";
@@ -10,15 +11,19 @@ buildGoModule rec {
     sha256 = "sha256-x5NHMTyOZSGOnAUCRu1qZggU5m832TFrBTSNJU6DUKo=";
   };
 
-  nativeBuildInputs = [ installShellFiles ];
+  vendorSha256 = "sha256-IRuwX+VF0ltASTt/QKlZ3A00tgDhc9qpBfzhINp3HgQ=";
 
-  vendorSha256 = "sha256-OHgdvitHi2f/svn0QDlknmteii+5rLKaZ7f7VJ+7H4w=";
+  proxyVendor = true;
+
+  nativeBuildInputs = [ installShellFiles ];
 
   # Some tests violates sandbox constraints.
   doCheck = false;
 
   ldflags = [
-    "-s" "-w" "-X github.com/neilotoole/sq/cli/buildinfo.Version=${version}"
+    "-s"
+    "-w"
+    "-X=github.com/neilotoole/sq/cli/buildinfo.Version=${version}"
   ];
 
   postInstall = ''