apparently sed is just not compatible
#!/usr/bin/env bash
set -eux
+if [[ $(uname) == Darwin ]]; then
sed -i '' "s|-I/usr/local/opt/icu4c/include -I/opt/homebrew/opt/icu4c/include|-I$PREFIX/include|g" src/couch/rebar.config.script
sed -i '' "s|-L/usr/local/opt/icu4c/lib -L/opt/homebrew/opt/icu4c/lib|-L$PREFIX/lib|g" src/couch/rebar.config.script
+fi
export CFLAGS="-I$PREFIX/include -I$PREFIX/include/mozjs-91 -I$PREFIX/lib/erlang/usr/include"
export LDFLAGS="-L$PREFIX/lib"
export ERL_CFLAGS="$CFLAGS"
