diff options
author | Soner Sayakci <s.sayakci@shopware.com> | 2023-12-27 10:13:11 +0100 |
---|---|---|
committer | Soner Sayakci <s.sayakci@shopware.com> | 2023-12-27 11:52:04 +0100 |
commit | 143fd64aeac46f22102c0835d537f182700cf5d3 (patch) | |
tree | 984b1bb0a0c344eda470bfd153242eb782bd0a12 /pkgs/by-name | |
parent | 028b6592f48360e4c7194563c8ac9c04b8123c67 (diff) |
opensearch-cli: init at 1.2.0
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/op/opensearch-cli/package.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/by-name/op/opensearch-cli/package.nix b/pkgs/by-name/op/opensearch-cli/package.nix new file mode 100644 index 0000000000000..ce0a671358045 --- /dev/null +++ b/pkgs/by-name/op/opensearch-cli/package.nix @@ -0,0 +1,38 @@ +{ 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 = "A 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 ]; + }; +} |