just: make new bash completion test work from build

+29
+20
pkgs/by-name/ju/just/fix-just-path-in-tests.patch
··· 1 + diff --git a/tests/completions/just.bash b/tests/completions/just.bash 2 + index 6d5c12c..13bff87 100755 3 + --- a/tests/completions/just.bash 4 + +++ b/tests/completions/just.bash 5 + @@ -17,11 +17,13 @@ reply_equals() { 6 + fi 7 + } 8 + 9 + +just() { 10 + + cargo run -- "$@" 11 + +} 12 + + 13 + # --- Initial Setup --- 14 + source "$1" 15 + cd tests/completions 16 + -cargo build 17 + -PATH="$(git rev-parse --show-toplevel)/target/debug:$PATH" 18 + exit_code=0 19 + 20 + # --- Tests ---
+9
pkgs/by-name/ju/just/package.nix
··· 2 2 , stdenv 3 3 , fetchFromGitHub 4 4 , rustPlatform 5 + , bashInteractive 5 6 , coreutils 6 7 , installShellFiles 7 8 , libiconv ··· 42 43 43 44 # Return unchanged string.rs 44 45 cp $TMPDIR/string.rs tests/string.rs 46 + 47 + # For shell completion tests 48 + export PATH=${bashInteractive}/bin:$PATH 49 + patchShebangs tests 45 50 ''; 51 + 52 + patches = [ 53 + ./fix-just-path-in-tests.patch 54 + ]; 46 55 47 56 postBuild = '' 48 57 cargo run --package generate-book