diff options
author | Raymond Douglas <r@rymnd.org> | 2024-04-12 16:48:58 -0700 |
---|---|---|
committer | Raymond Douglas <r@rymnd.org> | 2024-04-12 18:36:35 -0700 |
commit | 0ffde8d0c894dd34b138ae4af879753bd8b6d91c (patch) | |
tree | ea57b81f580cf199ef524580ca7396ba21eacdb2 /pkgs/by-name/om | |
parent | b954abc0c3c3b3d6e91e35880f8592a41d1f8cd1 (diff) |
omnictl: init at 0.32.2
Diffstat (limited to 'pkgs/by-name/om')
-rw-r--r-- | pkgs/by-name/om/omnictl/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/om/omnictl/package.nix b/pkgs/by-name/om/omnictl/package.nix new file mode 100644 index 0000000000000..4f803fe35626d --- /dev/null +++ b/pkgs/by-name/om/omnictl/package.nix @@ -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 ]; + }; +} |