mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
commit
837a1b60c3
2 changed files with 42 additions and 0 deletions
40
pkgs/applications/networking/cluster/civo/default.nix
Normal file
40
pkgs/applications/networking/cluster/civo/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -33796,6 +33796,8 @@ with pkgs;
|
||||||
|
|
||||||
calaos_installer = libsForQt5.callPackage ../misc/calaos/installer {};
|
calaos_installer = libsForQt5.callPackage ../misc/calaos/installer {};
|
||||||
|
|
||||||
|
civo = callPackage ../applications/networking/cluster/civo { };
|
||||||
|
|
||||||
click = callPackage ../applications/networking/cluster/click { };
|
click = callPackage ../applications/networking/cluster/click { };
|
||||||
|
|
||||||
clinfo = callPackage ../tools/system/clinfo {
|
clinfo = callPackage ../tools/system/clinfo {
|
||||||
|
|
Loading…
Reference in a new issue