mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
16 lines
337 B
Bash
16 lines
337 B
Bash
# shellcheck shell=bash
|
|
#
|
|
# It's common to vendor a copy of rebar/rebar3 in repos, but we want to remove those
|
|
|
|
rebarDevendorPatchHook() {
|
|
echo "Executing rebarDevendorPatchHook"
|
|
|
|
rm -f rebar rebar
|
|
|
|
echo "Finished rebarDevendorPatchHook"
|
|
}
|
|
|
|
if [ -z "${dontRebarDevendorPatch-}" ]; then
|
|
prePatchHooks+=(rebarDevendorPatchHook)
|
|
fi
|