Merge pull request #303742 from raylas/add-omnictl

omnictl: init at 0.32.2

authored by Sandro and committed by GitHub 6edf2fc4 17109322

+46
+6
maintainers/maintainer-list.nix
··· 16713 githubId = 145816; 16714 name = "David McKay"; 16715 }; 16716 rayslash = { 16717 email = "stevemathewjoy@tutanota.com"; 16718 github = "rayslash";
··· 16713 githubId = 145816; 16714 name = "David McKay"; 16715 }; 16716 + raylas = { 16717 + email = "r@raymond.sh"; 16718 + github = "raylas"; 16719 + githubId = 8099415; 16720 + name = "Raymond Douglas"; 16721 + }; 16722 rayslash = { 16723 email = "stevemathewjoy@tutanota.com"; 16724 github = "rayslash";
+40
pkgs/by-name/om/omnictl/package.nix
···
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 + 3 + buildGoModule rec { 4 + pname = "omnictl"; 5 + version = "0.32.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "siderolabs"; 9 + repo = "omni"; 10 + rev = "v${version}"; 11 + hash = "sha256-db/bYwMPrOZvD/YPtFaRK80yaYdsE70YPh0xQe0uVi4="; 12 + }; 13 + 14 + vendorHash = "sha256-uwzVUdA51eT9fi2Wr0ilNPMpXx430UIYYWXQa1hpzRM="; 15 + 16 + ldflags = [ "-s" "-w" ]; 17 + 18 + GOWORK = "off"; 19 + 20 + subPackages = [ "cmd/omnictl" ]; 21 + 22 + nativeBuildInputs = [ installShellFiles ]; 23 + 24 + postInstall = '' 25 + installShellCompletion --cmd omnictl \ 26 + --bash <($out/bin/omnictl completion bash) \ 27 + --fish <($out/bin/omnictl completion fish) \ 28 + --zsh <($out/bin/omnictl completion zsh) 29 + ''; 30 + 31 + doCheck = false; # no tests 32 + 33 + meta = with lib; { 34 + description = "A CLI for the Sidero Omni Kubernetes management platform"; 35 + mainProgram = "omnictl"; 36 + homepage = "https://omni.siderolabs.com/"; 37 + license = licenses.bsl11; 38 + maintainers = with maintainers; [ raylas ]; 39 + }; 40 + }