Skip to content

Commit

Permalink
stdenv: Allow changing the patch command
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Hubrecht committed Aug 26, 2023
1 parent 52858df commit f38c079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/stdenv/generic/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ patchPhase() {
fi
# "2>&1" is a hack to make patch fail if the decompressor fails (nonexistent patch, etc.)
# shellcheck disable=SC2086
$uncompress < "$i" 2>&1 | patch "${flagsArray[@]}"
$uncompress < "$i" 2>&1 | ${patchCommand:-patch} "${flagsArray[@]}"
done

runHook postPatch
Expand Down

0 comments on commit f38c079

Please sign in to comment.