diff --git a/pkgs/by-name/ve/vesktop/package.nix b/pkgs/by-name/ve/vesktop/package.nix index f1a310c3a833..6d65fe99d89a 100644 --- a/pkgs/by-name/ve/vesktop/package.nix +++ b/pkgs/by-name/ve/vesktop/package.nix @@ -87,7 +87,7 @@ stdenv.mkDerivation (finalAttrs: { # electron builds must be writable on darwin preBuild = lib.optionalString stdenv.isDarwin '' - cp -r ${electron}/Applications/Electron.app . + cp -r ${electron.dist}/Electron.app . chmod -R u+w Electron.app ''; @@ -98,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: { pnpm exec electron-builder \ --dir \ -c.asarUnpack="**/*.node" \ - -c.electronDist=${if stdenv.isDarwin then "." else "${electron}/libexec/electron"} \ + -c.electronDist=${if stdenv.isDarwin then "." else electron.dist} \ -c.electronVersion=${electron.version} runHook postBuild