From 5c94298f876ec71b07abc669569305a951c3d6e1 Mon Sep 17 00:00:00 2001 From: Berry Phillips Date: Sat, 14 May 2022 03:25:00 +0900 Subject: [PATCH] civo: init at 1.0.28 --- .../networking/cluster/civo/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/applications/networking/cluster/civo/default.nix diff --git a/pkgs/applications/networking/cluster/civo/default.nix b/pkgs/applications/networking/cluster/civo/default.nix new file mode 100644 index 000000000000..9066cbe7b9c3 --- /dev/null +++ b/pkgs/applications/networking/cluster/civo/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a86ab8e64ed7..82481617132b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33787,6 +33787,8 @@ with pkgs; calaos_installer = libsForQt5.callPackage ../misc/calaos/installer {}; + civo = callPackage ../applications/networking/cluster/civo { }; + click = callPackage ../applications/networking/cluster/click { }; clinfo = callPackage ../tools/system/clinfo {