diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2022-08-09 17:53:35 -0400 |
---|---|---|
committer | Kira Bruneau <kira.bruneau@pm.me> | 2022-08-09 18:09:24 -0400 |
commit | 4c476e1c70636614637a4c8fc0a1a90c4dee46f4 (patch) | |
tree | cada0e0ade3e9e2987373483317d09fa72d65ab9 /pkgs/development/tools/electron | |
parent | cdd62cecb434702b9614957e24be54c63c7ad0f3 (diff) |
electron: use wrapper instead of symlink for bin on darwin
electron fails to run through a symlink: ``` GPU process isn't usable. Goodbye. ```
Diffstat (limited to 'pkgs/development/tools/electron')
-rw-r--r-- | pkgs/development/tools/electron/generic.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index 6091fa902c776..97e7fb520346c 100644 --- a/pkgs/development/tools/electron/generic.nix +++ b/pkgs/development/tools/electron/generic.nix @@ -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 |