From 263b0365db9d78025bbd387c485ab42bfeb2e800 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 26 Jul 2022 22:37:34 -0400 Subject: [PATCH] micropad: remove special case for electron on darwin --- pkgs/applications/office/micropad/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/applications/office/micropad/default.nix b/pkgs/applications/office/micropad/default.nix index c6f0ae106e2c..c92cfdb97a18 100644 --- a/pkgs/applications/office/micropad/default.nix +++ b/pkgs/applications/office/micropad/default.nix @@ -11,10 +11,6 @@ }: let executableName = "micropad"; - electron_exec = - if stdenv.isDarwin - then "${electron}/Applications/Electron.app/Contents/MacOS/Electron" - else "${electron}/bin/electron"; in mkYarnPackage rec { pname = "micropad"; @@ -64,7 +60,7 @@ in done # executable wrapper - makeWrapper '${electron_exec}' "$out/bin/${executableName}" \ + makeWrapper '${electron}/bin/electron' "$out/bin/${executableName}" \ --add-flags "$out/share/micropad" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}"