diff --git a/pkgs/development/tools/metal-cli/default.nix b/pkgs/development/tools/metal-cli/default.nix index 83ba07b07a8f..f2194ecc428d 100644 --- a/pkgs/development/tools/metal-cli/default.nix +++ b/pkgs/development/tools/metal-cli/default.nix @@ -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/";