sentry-cli: Enable shell completions
This commit is contained in:
parent
3c28778aa1
commit
70e0c91fd6
@ -1,6 +1,7 @@
|
||||
{ rustPlatform
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, installShellFiles
|
||||
, openssl
|
||||
, pkg-config
|
||||
, stdenv
|
||||
@ -24,10 +25,17 @@ rustPlatform.buildRustPackage rec {
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
|
||||
cargoHash = "sha256-KytXqILji1pbiMz7OX+O5B2bw5MMlKf/MYh13+nd+bg=";
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd sentry-cli \
|
||||
--bash <($out/bin/sentry-cli completions bash) \
|
||||
--fish <($out/bin/sentry-cli completions fish) \
|
||||
--zsh <($out/bin/sentry-cli completions zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.sentry.io/cli/";
|
||||
license = licenses.bsd3;
|
||||
|
Loading…
Reference in New Issue
Block a user