···3939 HOME=. escript bootstrap
4040 '';
41414242+4343+ patches = []
4444+ # Skips test that can write outside the designated tmp directory, potentially resulting in build failures
4545+ # due to file ownership issues if ran without sandbox (eg. Mac M1 default). This patch can be Removed when
4646+ # rebar3 releases with the following commit:
4747+ # https://github.com/erlang/rebar3/commit/11055384dbd5bf7d181bca83a33b0e100275ff21
4848+ ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ ./tmp-tests-skip.patch ];
4949+4250 checkPhase = ''
4351 HOME=. escript ./rebar3 ct
4452 '';