Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, supabase-cli, nix-update-script}:
buildGoModule rec { pname = "supabase-cli"; version = "1.131.2";
src = fetchFromGitHub { owner = "supabase"; repo = "cli"; rev = "v${version}"; hash = "sha256-6IjVROKxDiLod8XWWndnxHQGnk8DJc1sjzJxLWDkRL0="; };
vendorHash = "sha256-/hfFydNHDK6shCC4iIkdP8r1ZO9niMIWZ/Ypj/DGj+c=";
ldflags = [ "-s" "-w" "-X=github.com/supabase/cli/internal/utils.Version=${version}" ];
doCheck = false; # tests are trying to connect to localhost
nativeBuildInputs = [ installShellFiles ];
postInstall = '' rm $out/bin/{codegen,docs,listdep} mv $out/bin/{cli,supabase}
installShellCompletion --cmd supabase \ --bash <($out/bin/supabase completion bash) \ --fish <($out/bin/supabase completion fish) \ --zsh <($out/bin/supabase completion zsh) '';
passthru = { tests.version = testers.testVersion { package = supabase-cli; }; updateScript = nix-update-script { }; };
meta = with lib; { description = "A CLI for interacting with supabase"; homepage = "https://github.com/supabase/cli"; license = licenses.mit; maintainers = with maintainers; [ gerschtli kashw2 ]; mainProgram = "supabase"; };}