Merge pull request #169087 from superherointj/package-metal-cli-0.7.4

This commit is contained in:
Sandro 2022-04-20 19:14:50 +02:00 committed by GitHub
commit 2fdde8674a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/";