mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
uv: install completions
This commit is contained in:
parent
f7a8b88715
commit
5780402798
@ -2,6 +2,7 @@
|
||||
, cmake
|
||||
, darwin
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, openssl
|
||||
, pkg-config
|
||||
, rustPlatform
|
||||
@ -30,6 +31,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
installShellFiles
|
||||
pkg-config
|
||||
];
|
||||
|
||||
@ -48,6 +50,14 @@ rustPlatform.buildRustPackage rec {
|
||||
OPENSSL_NO_VENDOR = true;
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
export HOME=$TMPDIR
|
||||
installShellCompletion --cmd uv \
|
||||
--bash <($out/bin/uv --generate-shell-completion bash) \
|
||||
--fish <($out/bin/uv --generate-shell-completion fish) \
|
||||
--zsh <($out/bin/uv --generate-shell-completion zsh)
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user