Files
nixpkgs/pkgs/development/beam-modules/hooks/rebar-devendor-patch-hook.sh
Adam C. Stephens 5cfa15f65b beam hooks: add targeted auxiliary hook opt-outs
Assisted-By: OpenAI Codex GPT-6 Astra
2026-09-22 10:23:50 -04:00

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