nixpkgs/pkgs/development/tools/metal-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
667 B
Nix
Raw Normal View History

2021-10-25 17:34:31 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "metal-cli";
2022-02-09 16:01:32 +00:00
version = "0.7.3";
2021-10-25 17:34:31 +00:00
src = fetchFromGitHub {
owner = "equinix";
repo = pname;
rev = "v${version}";
2022-02-09 16:01:32 +00:00
sha256 = "sha256-PsTQuEbo1ReWwZV4D14mEGsU99j49kleiL/6Xyk+g9s=";
2021-10-25 17:34:31 +00:00
};
2022-02-09 16:01:32 +00:00
ldflags = [
"-X github.com/equinix/metal-cli/cmd.Version=${version}"
];
2021-12-30 20:37:39 +00:00
vendorSha256 = "sha256-F8d5i9jvjY11Pv6w0ZXI3jr0Wix++B/w9oRTuJGpQfE=";
2021-10-25 17:34:31 +00:00
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 ];
};
}