diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-12-05 18:24:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 18:24:53 +0100 |
commit | 6e904178e027489541627b901172c6ae01f83dec (patch) | |
tree | 4c7ae2e12322504e6b4bffe3382002e14ef31650 | |
parent | 21aba1cdd2eacd8d6bcc4912e36d6d5849811310 (diff) | |
parent | 517ce3aba91ea04f0d33eec3f87285cbce0d8eec (diff) | |
download | nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar.gz nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar.bz2 nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar.lz nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar.xz nixpkgs-6e904178e027489541627b901172c6ae01f83dec.tar.zst nixpkgs-6e904178e027489541627b901172c6ae01f83dec.zip |
Merge pull request #204421 from r-ryantm/auto-update/metal-cli
metal-cli: 0.11.0 -> 0.12.0
-rw-r--r-- | pkgs/development/tools/metal-cli/default.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/development/tools/metal-cli/default.nix b/pkgs/development/tools/metal-cli/default.nix index e373ecd9ef2..9c254bb2c79 100644 --- a/pkgs/development/tools/metal-cli/default.nix +++ b/pkgs/development/tools/metal-cli/default.nix @@ -1,24 +1,31 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: buildGoModule rec { pname = "metal-cli"; - version = "0.11.0"; + version = "0.12.0"; src = fetchFromGitHub { owner = "equinix"; repo = pname; rev = "v${version}"; - sha256 = "sha256-tbnG/MF83cAnsG2LOqdQSGF2XT+UWSzIpxVbkolzEQQ="; + hash = "sha256-oPMojw6CGncBJ8PZOTrzvQu2gRs1cw1Jwi38eOZggI8="; }; - vendorSha256 = "sha256-drsNZXLNUWICLI8D+IvJE4X8GmWrP9U3dmpf9HnKCWw="; + vendorHash = "sha256-drsNZXLNUWICLI8D+IvJE4X8GmWrP9U3dmpf9HnKCWw="; ldflags = [ - "-s" "-w" + "-s" + "-w" "-X github.com/equinix/metal-cli/cmd.Version=${version}" ]; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + ]; postInstall = '' installShellCompletion --cmd metal \ @@ -30,6 +37,7 @@ buildGoModule rec { doCheck = false; doInstallCheck = true; + installCheckPhase = '' $out/bin/metal --version | grep ${version} ''; @@ -37,6 +45,7 @@ buildGoModule rec { meta = with lib; { description = "Official Equinix Metal CLI"; homepage = "https://github.com/equinix/metal-cli/"; + changelog = "https://github.com/equinix/metal-cli/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ Br1ght0ne nshalman ]; mainProgram = "metal"; |