mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
jj-pre-push: fix shell completion generation (#575097)
This commit is contained in:
@@ -40,6 +40,9 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
# Generate completions for the requested shell instead of detecting the build shell.
|
||||
export _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1
|
||||
|
||||
installShellCompletion --cmd jj-pre-push \
|
||||
--bash <($out/bin/jj-pre-push --show-completion bash) \
|
||||
--fish <($out/bin/jj-pre-push --show-completion fish) \
|
||||
|
||||
Reference in New Issue
Block a user