Skip to content

Commit

Permalink
patch build-gnu.sh for NixOS
Browse files Browse the repository at this point in the history
  • Loading branch information
RenjiSann committed Jan 2, 2025
1 parent d7a681e commit 8521610
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,8 @@ sed -i "s/color_code='0;31;42'/color_code='31;42'/" tests/ls/quote-align.sh

# Slightly different error message
sed -i 's/not supported/unexpected argument/' tests/mv/mv-exchange.sh
# Most tests check that `/usr/bin/tr` is working correctly before running.
# However in NixOS/Nix-based distros, the tr coreutil is located somewhere in
# /nix/store/xxxxxxxxxxxx...xxxx/bin/tr
# We just replace the references to `/usr/bin/tr` with the result of `$(which tr)`
sed -i 's/\/usr\/bin\/tr/$(which tr)/' tests/init.sh

0 comments on commit 8521610

Please sign in to comment.