nixpkgs/pkgs/applications/networking/cluster/civo/default.nix

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

41 lines
906 B
Nix
Raw Normal View History

2022-05-13 18:25:00 +00:00
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "civo";
2022-08-11 09:09:43 +00:00
version = "1.0.32";
2022-05-13 18:25:00 +00:00
src = fetchFromGitHub {
owner = "civo";
repo = "cli";
rev = "v${version}";
2022-08-11 09:09:43 +00:00
sha256 = "sha256-Q/eSYm+SupHdRf7O7dU+UU+1GOwtjcsT0iFxWiKAEuw=";
2022-05-13 18:25:00 +00:00
};
2022-08-11 09:09:43 +00:00
vendorSha256 = "sha256-ZZwecjcJqKOj2ywy4el1SVMs+0a/F6tFP37MYDC6tyg=";
2022-05-13 18:25:00 +00:00
CGO_ENABLED = 0;
# Some lint checks fail
doCheck = false;
ldflags = [
"-s"
"-X github.com/civo/cli/cmd.VersionCli=${version}"
"-X github.com/civo/cli/cmd.CommitCli=${src.rev}"
"-X github.com/civo/cli/cmd.DateCli=unknown"
];
doInstallCheck = false;
postInstall = ''
mv $out/bin/cli $out/bin/civo
'';
meta = with lib; {
description = "CLI for interacting with Civo resources";
homepage = "https://github.com/civo/cli";
license = licenses.asl20;
maintainers = with maintainers; [ berryp ];
};
}