diff --git a/pkgs/development/tools/build-managers/scala-cli/default.nix b/pkgs/development/tools/build-managers/scala-cli/default.nix index a9ec8b88df07..92ea26b83375 100644 --- a/pkgs/development/tools/build-managers/scala-cli/default.nix +++ b/pkgs/development/tools/build-managers/scala-cli/default.nix @@ -53,7 +53,9 @@ stdenv.mkDerivation { '' + '' # hack to ensure the completion function looks right # as $0 is used to generate the compdef directive - PATH="$out/bin:$PATH" + mkdir temp + cp $out/bin/.scala-cli-wrapped temp/scala-cli + PATH="./temp:$PATH" installShellCompletion --cmd scala-cli \ --bash <(scala-cli completions bash) \