uv: only generate shell completions when possible (#358982)

authored by Masum Reza and committed by GitHub ac2eacd3 f56a4a56

+2 -1
+2 -1
pkgs/by-name/uv/uv/package.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 cmake, 4 5 fetchFromGitHub, 5 6 installShellFiles, ··· 40 41 # Tests require python3 41 42 doCheck = false; 42 43 43 - postInstall = '' 44 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 44 45 export HOME=$TMPDIR 45 46 installShellCompletion --cmd uv \ 46 47 --bash <($out/bin/uv --generate-shell-completion bash) \