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