3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #213879 from marsam/init-algolia-cli

algolia-cli: init at 1.2.1
This commit is contained in:
Nick Cao 2023-02-02 08:43:26 +08:00 committed by GitHub
commit 8ca08f3a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "algolia-cli";
version = "1.2.1";
src = fetchFromGitHub {
owner = "algolia";
repo = "cli";
rev = "v${version}";
hash = "sha256-rmxLbxotATyURRcG9ryWCDHkH7a/bop/BCDQAoQjXSo=";
};
vendorHash = "sha256-iG8g7mBbIulKSxc1a3/fOBOCWoFYaB5FLwJPNKJRZDg=";
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/algolia" ];
ldflags = [ "-s" "-w" "-X github.com/algolia/cli/pkg/version.Version=${version}" ];
postInstall = ''
installShellCompletion --cmd algolia \
--bash <($out/bin/algolia completion bash) \
--fish <($out/bin/algolia completion fish) \
--zsh <($out/bin/algolia completion zsh)
'';
meta = with lib; {
description = "Algolias official CLI devtool";
homepage = "https://algolia.com/doc/tools/cli/";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}

View file

@ -5792,6 +5792,8 @@ with pkgs;
byzanz = callPackage ../applications/video/byzanz {};
algolia-cli = callPackage ../development/tools/algolia-cli { };
anydesk = callPackage ../applications/networking/remote/anydesk { };
anystyle-cli = callPackage ../tools/misc/anystyle-cli { };