electron: use wrapper instead of symlink for bin on darwin

electron fails to run through a symlink:

```
GPU process isn't usable. Goodbye.
```
This commit is contained in:
Kira Bruneau 2022-08-09 17:53:35 -04:00
parent cdd62cecb4
commit 4c476e1c70

View File

@ -104,14 +104,17 @@ let
};
darwin = {
nativeBuildInputs = [ unzip ];
nativeBuildInputs = [
makeWrapper
unzip
];
buildCommand = ''
mkdir -p $out/Applications
unzip $src
mv Electron.app $out/Applications
mkdir -p $out/bin
ln -s $out/Applications/Electron.app/Contents/MacOS/Electron $out/bin/electron
makeWrapper $out/Applications/Electron.app/Contents/MacOS/Electron $out/bin/electron
'';
};
in