mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 16:47:49 +00:00
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:
parent
cdd62cecb4
commit
4c476e1c70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user