mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
uv: only generate shell completions when possible (#358982)
This commit is contained in:
commit
ac2eacd373
@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
@ -40,7 +41,7 @@ rustPlatform.buildRustPackage rec {
|
||||
# Tests require python3
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
export HOME=$TMPDIR
|
||||
installShellCompletion --cmd uv \
|
||||
--bash <($out/bin/uv --generate-shell-completion bash) \
|
||||
|
Loading…
Reference in New Issue
Block a user