Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions pkgs/development/tools/electron/binary/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ let
vulkan-loader
];

# Fix read out of range on aarch64 16k pages builds
# https://github.com/NixOS/nixpkgs/pull/365364
# https://github.com/NixOS/nixpkgs/pull/380991
# Can likely be removed when v34.2.1 (or v32.3.0?) releases:
# https://github.com/electron/electron/pull/45571
needsAarch64PageSizeFix = lib.versionAtLeast version "34" && stdenv.hostPlatform.isAarch64;

linux = finalAttrs: {
buildInputs = [
glib
Expand Down Expand Up @@ -162,8 +155,7 @@ let

preFixup = ''
makeWrapper "$out/libexec/electron/electron" $out/bin/electron \
"''${gappsWrapperArgs[@]}" \
${lib.optionalString needsAarch64PageSizeFix "--add-flags '--js-flags=--no-decommit-pooled-pages'"}
"''${gappsWrapperArgs[@]}"
'';

postFixup = ''
Expand Down
6 changes: 1 addition & 5 deletions pkgs/development/tools/electron/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ in

src = null;

patches =
base.patches
++ lib.optionals (lib.versions.major info.version == "32") [
./fix-electron-32-patch-apply-without-git-3way.patch
];
patches = base.patches;

unpackPhase =
''
Expand Down

This file was deleted.