From 4c476e1c70636614637a4c8fc0a1a90c4dee46f4 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 9 Aug 2022 17:53:35 -0400 Subject: [PATCH] electron: use wrapper instead of symlink for bin on darwin electron fails to run through a symlink: ``` GPU process isn't usable. Goodbye. ``` --- pkgs/development/tools/electron/generic.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index 6091fa902c77..97e7fb520346 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