12 src = fetchFromGitHub {
16 hash = "sha256-+hpsGFZHuVhh+fKVcap0vhoUmRs3xPgUwW8SD56m6uI=";
19 vendorHash = "sha256-X+GfM73LAWk2pT4ZOPT2pg8YaKyT+SNjQ14LgB+C7Wo=";
24 "-X github.com/equinix/metal-cli/cmd.Version=${version}"
32 installShellCompletion --cmd metal \
33 --bash <($out/bin/metal completion bash) \
34 --fish <($out/bin/metal completion fish) \
35 --zsh <($out/bin/metal completion zsh)
40 doInstallCheck = true;
42 installCheckPhase = ''
43 $out/bin/metal --version | grep ${version}
47 description = "Official Equinix Metal CLI";
48 homepage = "https://github.com/equinix/metal-cli/";
49 changelog = "https://github.com/equinix/metal-cli/releases/tag/v${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [
56 mainProgram = "metal";