forked from mirrors/nixpkgs
Merge pull request #169087 from superherointj/package-metal-cli-0.7.4
This commit is contained in:
commit
2fdde8674a
|
@ -2,23 +2,29 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "metal-cli";
|
||||
version = "0.7.3";
|
||||
version = "0.7.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "equinix";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-PsTQuEbo1ReWwZV4D14mEGsU99j49kleiL/6Xyk+g9s=";
|
||||
sha256 = "sha256-muhHBUb5Ttj4n6fJzIJMqics5rKupeSBZAd4JxZUe64=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-X github.com/equinix/metal-cli/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = "sha256-F8d5i9jvjY11Pv6w0ZXI3jr0Wix++B/w9oRTuJGpQfE=";
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w"
|
||||
"-X github.com/equinix/metal-cli/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/metal --version | grep ${version}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Official Equinix Metal CLI";
|
||||
homepage = "https://github.com/equinix/metal-cli/";
|
||||
|
|
Loading…
Reference in a new issue