11 src = fetchFromGitHub {
15 hash = "sha256-jnBD1MYQ3Tq/YzPEpCu5sifEUAI0cw59/NCbDLisEDo=";
18 vendorHash = "sha256-dIZyBhoY6GkkMY4NQrDjVxKaOOPIdxGGRBFlTkyeFdo=";
23 "-X github.com/equinix/metal-cli/cmd.Version=${version}"
31 installShellCompletion --cmd metal \
32 --bash <($out/bin/metal completion bash) \
33 --fish <($out/bin/metal completion fish) \
34 --zsh <($out/bin/metal completion zsh)
39 doInstallCheck = true;
41 installCheckPhase = ''
42 $out/bin/metal --version | grep ${version}
46 description = "Official Equinix Metal CLI";
47 homepage = "https://github.com/equinix/metal-cli/";
48 changelog = "https://github.com/equinix/metal-cli/releases/tag/v${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ Br1ght0ne nshalman ];
51 mainProgram = "metal";