{ stdenv, lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "civo"; version = "1.0.32"; src = fetchFromGitHub { owner = "civo"; repo = "cli"; rev = "v${version}"; sha256 = "sha256-Q/eSYm+SupHdRf7O7dU+UU+1GOwtjcsT0iFxWiKAEuw="; }; vendorSha256 = "sha256-ZZwecjcJqKOj2ywy4el1SVMs+0a/F6tFP37MYDC6tyg="; 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 ]; }; }