My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/networking/cluster/civo/default.nix

40 lines
906 B

{ stdenv, lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "civo";
version = "1.0.28";
src = fetchFromGitHub {
owner = "civo";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-PuLmjX7ps0pdfaDpshWrc67OW83/jpB4HkNCi1fzpAU=";
};
vendorSha256 = "sha256-VMBMiwBFXKe+E4Xzcmhu2Ge5JzS+jIbUtxTfp+B0EWE=";
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 ];
};
}