mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "opensearch-cli";
|
|
version = "1.2.0";
|
|
src = fetchFromGitHub {
|
|
repo = "opensearch-cli";
|
|
owner = "opensearch-project";
|
|
rev = version;
|
|
hash = "sha256-Ah64a9hpc2tnIXiwxg/slE6fUTAoHv9koNmlUHrVj/s=";
|
|
};
|
|
|
|
vendorHash = "sha256-r3Bnud8pd0Z9XmGkj9yxRW4U/Ry4U8gvVF4pAdN14lQ=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
export HOME="$(mktemp -d)"
|
|
installShellCompletion --cmd opensearch-cli \
|
|
--bash <($out/bin/opensearch-cli completion bash) \
|
|
--zsh <($out/bin/opensearch-cli completion zsh) \
|
|
--fish <($out/bin/opensearch-cli completion fish)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Full-featured command line interface (CLI) for OpenSearch";
|
|
homepage = "https://github.com/opensearch-project/opensearch-cli";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "opensearch-cli";
|
|
maintainers = with lib.maintainers; [ shyim ];
|
|
platforms = lib.platforms.unix;
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
};
|
|
}
|