element-desktop: fix sandbox build on darwin

This commit is contained in:
Kenichi Kamiya
2025-08-06 19:19:06 +09:00
parent c4f99908f3
commit fe08e9fa5f
@@ -77,6 +77,11 @@ stdenv.mkDerivation (
runHook postConfigure
'';
# Workaround for darwin sandbox build failure: "Error: listen EPERM: operation not permitted ..tsx..."
preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
export TMPDIR="$(mktemp -d)"
'';
buildPhase = ''
runHook preBuild