···39 HOME=. escript bootstrap
40 '';
4142+43+ patches = []
44+ # Skips test that can write outside the designated tmp directory, potentially resulting in build failures
45+ # due to file ownership issues if ran without sandbox (eg. Mac M1 default). This patch can be Removed when
46+ # rebar3 releases with the following commit:
47+ # https://github.com/erlang/rebar3/commit/11055384dbd5bf7d181bca83a33b0e100275ff21
48+ ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ ./tmp-tests-skip.patch ];
49+50 checkPhase = ''
51 HOME=. escript ./rebar3 ct
52 '';