diff --git a/pkgs/development/tools/supabase-cli/default.nix b/pkgs/development/tools/supabase-cli/default.nix index 1c8e53b60e90..769546e30567 100644 --- a/pkgs/development/tools/supabase-cli/default.nix +++ b/pkgs/development/tools/supabase-cli/default.nix @@ -2,6 +2,8 @@ , buildGoModule , fetchFromGitHub , installShellFiles +, testers +, supabase-cli , nix-update-script }: @@ -18,7 +20,11 @@ buildGoModule rec { vendorSha256 = "sha256-j2iEeAn+4Tn3h8lVKoaYE+6W4R/q+JaAWXxHllZGLNs="; - ldflags = [ "-s" "-w" "-X" "github.com/supabase/cli/cmd.version=${version}" ]; + ldflags = [ + "-s" + "-w" + "-X=github.com/supabase/cli/internal/utils.Version=${version}" + ]; doCheck = false; # tests are trying to connect to localhost @@ -34,7 +40,12 @@ buildGoModule rec { --zsh <($out/bin/supabase completion zsh) ''; - passthru.updateScript = nix-update-script { }; + passthru = { + tests.version = testers.testVersion { + package = supabase-cli; + }; + updateScript = nix-update-script { }; + }; meta = with lib; { description = "A CLI for interacting with supabase";