Merge pull request #303742 from raylas/add-omnictl
omnictl: init at 0.32.2
This commit is contained in:
commit
6edf2fc455
2 changed files with 46 additions and 0 deletions
|
@ -16713,6 +16713,12 @@
|
|||
githubId = 145816;
|
||||
name = "David McKay";
|
||||
};
|
||||
raylas = {
|
||||
email = "r@raymond.sh";
|
||||
github = "raylas";
|
||||
githubId = 8099415;
|
||||
name = "Raymond Douglas";
|
||||
};
|
||||
rayslash = {
|
||||
email = "stevemathewjoy@tutanota.com";
|
||||
github = "rayslash";
|
||||
|
|
40
pkgs/by-name/om/omnictl/package.nix
Normal file
40
pkgs/by-name/om/omnictl/package.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "omnictl";
|
||||
version = "0.32.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "siderolabs";
|
||||
repo = "omni";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-db/bYwMPrOZvD/YPtFaRK80yaYdsE70YPh0xQe0uVi4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-uwzVUdA51eT9fi2Wr0ilNPMpXx430UIYYWXQa1hpzRM=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
GOWORK = "off";
|
||||
|
||||
subPackages = [ "cmd/omnictl" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd omnictl \
|
||||
--bash <($out/bin/omnictl completion bash) \
|
||||
--fish <($out/bin/omnictl completion fish) \
|
||||
--zsh <($out/bin/omnictl completion zsh)
|
||||
'';
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
meta = with lib; {
|
||||
description = "A CLI for the Sidero Omni Kubernetes management platform";
|
||||
mainProgram = "omnictl";
|
||||
homepage = "https://omni.siderolabs.com/";
|
||||
license = licenses.bsl11;
|
||||
maintainers = with maintainers; [ raylas ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue