nixpkgs/pkgs/by-name/om/omnictl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1000 B
Nix
Raw Normal View History

2024-04-12 23:48:58 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "omnictl";
2024-07-05 05:51:09 +00:00
version = "0.38.3";
2024-04-12 23:48:58 +00:00
src = fetchFromGitHub {
owner = "siderolabs";
repo = "omni";
rev = "v${version}";
2024-07-05 05:51:09 +00:00
hash = "sha256-8AqXF7bBgn8br3mooh1BHvN2wWQnmpvVeBHbbJ5shGA=";
2024-04-12 23:48:58 +00:00
};
2024-06-22 08:52:30 +00:00
vendorHash = "sha256-BF/F/siVIYJT4abOlwQjpnQpmNFdOo566VGPIo08PO0=";
2024-04-12 23:48:58 +00:00
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 = "CLI for the Sidero Omni Kubernetes management platform";
mainProgram = "omnictl";
homepage = "https://omni.siderolabs.com/";
license = licenses.bsl11;
maintainers = with maintainers; [ raylas ];
};
}