Unverified Commit fa26b4cf authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

element-desktop: fix sandbox build on darwin (#431411)

parents c70c79dd fe08e9fa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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