3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/metal-cli/default.nix
2021-10-26 00:48:35 +02:00

29 lines
656 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "metal-cli";
version = "0.6.0";
src = fetchFromGitHub {
owner = "equinix";
repo = pname;
rev = "v${version}";
sha256 = "sha256-dGeOFrsqhW0+aQyB4f6pvv4ZBawqKX2+WRskDWoLS7E=";
};
vendorSha256 = "sha256-ifSfeJjrZI1Hrsq64zAGBiLVc8GKvq+Ddg26gQooyTs=";
postInstall = ''
ln -s $out/bin/metal-cli $out/bin/metal
'';
doCheck = false;
meta = with lib; {
description = "Official Equinix Metal CLI";
homepage = "https://github.com/equinix/metal-cli/";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne nshalman ];
};
}