about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/electron
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/electron')
-rw-r--r--nixpkgs/pkgs/development/tools/electron/common.nix14
-rw-r--r--nixpkgs/pkgs/development/tools/electron/electron-26-remove-web_tests-patch.patch73
-rw-r--r--nixpkgs/pkgs/development/tools/electron/info.json50
3 files changed, 30 insertions, 107 deletions
diff --git a/nixpkgs/pkgs/development/tools/electron/common.nix b/nixpkgs/pkgs/development/tools/electron/common.nix
index 749aafc44924..823b45971139 100644
--- a/nixpkgs/pkgs/development/tools/electron/common.nix
+++ b/nixpkgs/pkgs/development/tools/electron/common.nix
@@ -5,7 +5,7 @@
 , python3
 , fetchYarnDeps
 , fetchNpmDeps
-, fixup_yarn_lock
+, prefetch-yarn-deps
 , npmHooks
 , yarn
 , substituteAll
@@ -27,7 +27,7 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
   inherit (info) version;
   buildTargets = [ "electron:electron_dist_zip" ];
 
-  nativeBuildInputs = base.nativeBuildInputs ++ [ nodejs yarn fixup_yarn_lock unzip npmHooks.npmConfigHook ];
+  nativeBuildInputs = base.nativeBuildInputs ++ [ nodejs yarn prefetch-yarn-deps unzip npmHooks.npmConfigHook ];
   buildInputs = base.buildInputs ++ [ libnotify ];
 
   electronOfflineCache = fetchYarnDeps {
@@ -48,10 +48,6 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
       src = ./version.patch;
       inherit (info) version;
     })
-
-  # we remove the web_tests directory in the chromium src FOD to reduce the output size, but this backported patch includes patches on web_tests
-  ++ lib.optional (lib.versions.major info.version == "26")
-    ./electron-26-remove-web_tests-patch.patch
   ;
 
   unpackPhase = ''
@@ -111,7 +107,7 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
       cd electron
       export HOME=$TMPDIR/fake_home
       yarn config --offline set yarn-offline-mirror $electronOfflineCache
-      fixup_yarn_lock yarn.lock
+      fixup-yarn-lock yarn.lock
       yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
     )
 
@@ -122,10 +118,10 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
       for key in $(jq -r "keys[]" $config)
       do
         value=$(jq -r ".\"$key\"" $config)
-        echo patching $value
         for patch in $(cat $key/.patches)
         do
-          git apply -p1 --directory=$value $key/$patch
+          echo applying in $value: $patch
+          git apply -p1 --directory=$value --exclude='src/third_party/blink/web_tests/*' $key/$patch
         done
       done
     )
diff --git a/nixpkgs/pkgs/development/tools/electron/electron-26-remove-web_tests-patch.patch b/nixpkgs/pkgs/development/tools/electron/electron-26-remove-web_tests-patch.patch
deleted file mode 100644
index f3dfce6f4144..000000000000
--- a/nixpkgs/pkgs/development/tools/electron/electron-26-remove-web_tests-patch.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-diff --git a/electron/patches/chromium/cherry-pick-80106e31c7ea.patch b/electron/patches/chromium/cherry-pick-80106e31c7ea.patch
-index 3f8ae7d1b2..af8859a1a5 100644
---- a/electron/patches/chromium/cherry-pick-80106e31c7ea.patch
-+++ b/electron/patches/chromium/cherry-pick-80106e31c7ea.patch
-@@ -361,68 +361,3 @@ index 3d562fa22bd84dc438abfe9fa883eff6f5846b1b..c64c7fb1b15f7f523b37671abca2ab50
-    auto* resolver = MakeGarbageCollected<ScriptPromiseResolver>(
-        script_state, exception_state.GetContext());
-    ScriptPromise promise = resolver->Promise();
--diff --git a/third_party/blink/web_tests/external/wpt/webusb/usbDevice.https.any.js b/third_party/blink/web_tests/external/wpt/webusb/usbDevice.https.any.js
--index b1b0c133ce160a314ea392514ac5b38e4cac136d..804af2afb9db3a0d5fafbeb26aed64f89badb1b3 100644
----- a/third_party/blink/web_tests/external/wpt/webusb/usbDevice.https.any.js
--+++ b/third_party/blink/web_tests/external/wpt/webusb/usbDevice.https.any.js
--@@ -1247,3 +1247,60 @@ usb_test((t) => {
--         .then(() => promise_rejects_dom(t, 'NotFoundError', device.reset()));
--   });
-- }, 'resetDevice rejects when called on a disconnected device');
--+
--+usb_test(async (t) => {
--+  const PACKET_COUNT = 4;
--+  const PACKET_LENGTH = 8;
--+  const {device, fakeDevice} = await getFakeDevice();
--+  await device.open();
--+  await device.selectConfiguration(2);
--+  await device.claimInterface(0);
--+  await device.selectAlternateInterface(0, 1);
--+  const buffer = new Uint8Array(PACKET_COUNT * PACKET_LENGTH);
--+  const packetLengths = new Array(PACKET_COUNT).fill(PACKET_LENGTH);
--+  packetLengths[0] = PACKET_LENGTH - 1;
--+  await promise_rejects_dom(
--+      t, 'DataError', device.isochronousTransferOut(1, buffer, packetLengths));
--+}, 'isochronousTransferOut rejects when buffer size exceeds packet lengths');
--+
--+usb_test(async (t) => {
--+  const PACKET_COUNT = 4;
--+  const PACKET_LENGTH = 8;
--+  const {device, fakeDevice} = await getFakeDevice();
--+  await device.open();
--+  await device.selectConfiguration(2);
--+  await device.claimInterface(0);
--+  await device.selectAlternateInterface(0, 1);
--+  const buffer = new Uint8Array(PACKET_COUNT * PACKET_LENGTH);
--+  const packetLengths = new Array(PACKET_COUNT).fill(PACKET_LENGTH);
--+  packetLengths[0] = PACKET_LENGTH + 1;
--+  await promise_rejects_dom(
--+      t, 'DataError', device.isochronousTransferOut(1, buffer, packetLengths));
--+}, 'isochronousTransferOut rejects when packet lengths exceed buffer size');
--+
--+usb_test(async (t) => {
--+  const PACKET_COUNT = 2;
--+  const PACKET_LENGTH = 8;
--+  const {device, fakeDevice} = await getFakeDevice();
--+  await device.open();
--+  await device.selectConfiguration(2);
--+  await device.claimInterface(0);
--+  await device.selectAlternateInterface(0, 1);
--+  const packetLengths = [0xffffffff, 1];
--+  await promise_rejects_dom(
--+      t, 'DataError', device.isochronousTransferIn(1, packetLengths));
--+}, 'isochronousTransferIn rejects when packet lengths exceed maximum size');
--+
--+usb_test(async (t) => {
--+  const PACKET_COUNT = 2;
--+  const PACKET_LENGTH = 8;
--+  const {device, fakeDevice} = await getFakeDevice();
--+  await device.open();
--+  await device.selectConfiguration(2);
--+  await device.claimInterface(0);
--+  await device.selectAlternateInterface(0, 1);
--+  const buffer = new Uint8Array(PACKET_LENGTH * PACKET_COUNT);
--+  const packetLengths = [0xffffffff, 1];
--+  await promise_rejects_dom(
--+      t, 'DataError', device.isochronousTransferOut(1, buffer, packetLengths));
--+}, 'isochronousTransferOut rejects when packet lengths exceed maximum size');
diff --git a/nixpkgs/pkgs/development/tools/electron/info.json b/nixpkgs/pkgs/development/tools/electron/info.json
index eb85f0d329a8..f0ec96250977 100644
--- a/nixpkgs/pkgs/development/tools/electron/info.json
+++ b/nixpkgs/pkgs/development/tools/electron/info.json
@@ -3,16 +3,16 @@
         "deps": {
             "src/electron": {
                 "fetcher": "fetchFromGitHub",
-                "hash": "sha256-YUwftKxD+aEJ7jorrJ12q7brfhih8ukChdlVUmnRAEw=",
+                "hash": "sha256-QY0JaQVI60WAzWNWDXZRejFODA+p0LMjYvk2CMF8czs=",
                 "owner": "electron",
                 "repo": "electron",
-                "rev": "v28.1.1"
+                "rev": "v28.1.3"
             },
             "src": {
                 "fetcher": "fetchFromGitiles",
-                "hash": "sha256-Nt5OpfWc2PoZMQVIaiKfv5uqGSua81zZmV3zOE2Y1Ek=",
+                "hash": "sha256-7tGDiHumIfb5ST8tCNUCN7pjlcU+R13j68vYKTu0wiQ=",
                 "url": "https://chromium.googlesource.com/chromium/src.git",
-                "rev": "120.0.6099.109",
+                "rev": "120.0.6099.199",
                 "postFetch": "rm -r $out/third_party/blink/web_tests; rm -r $out/third_party/hunspell/tests; rm -r $out/content/test/data; rm -r $out/courgette/testdata; rm -r $out/extensions/test/data; rm -r $out/media/test/data; "
             },
             "src/third_party/clang-format/script": {
@@ -77,9 +77,9 @@
             },
             "src/third_party/angle": {
                 "fetcher": "fetchFromGitiles",
-                "hash": "sha256-/SnBY/jmj7MSbzBnuq6VVccRNaLsjo6hWhnKiIdAq+w=",
+                "hash": "sha256-aOV7kxrF8FeoHYodZjaUrDDUtpXg2gUiZg6Olv90puk=",
                 "url": "https://chromium.googlesource.com/angle/angle.git",
-                "rev": "4ae5f681dfe60bed7b083296ac97827b751f9226"
+                "rev": "6fff8ebc937f07e31473ac014a55f662248ab39a"
             },
             "src/third_party/angle/third_party/glmark2/src": {
                 "fetcher": "fetchFromGitiles",
@@ -119,9 +119,9 @@
             },
             "src/third_party/dawn": {
                 "fetcher": "fetchFromGitiles",
-                "hash": "sha256-onIVQBs8fIAhIEnjbwW8nrwAF5KJ2JjEMSK9b0HAheM=",
+                "hash": "sha256-5srmcwL9Zqv91LwoBf9xuyusq1ghDo30Aj27Xo96yPc=",
                 "url": "https://dawn.googlesource.com/dawn.git",
-                "rev": "acee31423468efdb650be9dc9172b30cc2015a4e"
+                "rev": "c7ed440d75861649d8a1ef4b775384f31211d902"
             },
             "src/third_party/dawn/third_party/glfw": {
                 "fetcher": "fetchFromGitiles",
@@ -659,9 +659,9 @@
             },
             "src/third_party/sqlite/src": {
                 "fetcher": "fetchFromGitiles",
-                "hash": "sha256-A3GAYf2hVZqQtEQdbVqP0I0Wh29DPHPf+JhxNLnTQh8=",
+                "hash": "sha256-wKsfwZpDRQzYQp6qls07uapgy9K3TWLOEUQlhIFpJtw=",
                 "url": "https://chromium.googlesource.com/chromium/deps/sqlite.git",
-                "rev": "ca75d938c18c99dc33b769fbdac8fc4c71befa33"
+                "rev": "cd9486849ba3c3ec753f556fd29c0aabee122a28"
             },
             "src/third_party/swiftshader": {
                 "fetcher": "fetchFromGitiles",
@@ -833,9 +833,9 @@
             },
             "src/v8": {
                 "fetcher": "fetchFromGitiles",
-                "hash": "sha256-IeZ9oCM+toyqqSf8Ip6FqjymbvUiqTmMM2ir+Edzmjc=",
+                "hash": "sha256-675U42bc/Sqg1A7c1cBjUCNB462wM5qrP6yIVbCSvLk=",
                 "url": "https://chromium.googlesource.com/v8/v8.git",
-                "rev": "999a2ca2d915d01ff1d889a57f1e26907d6ea842"
+                "rev": "c21e8fe0c5b245c6b9e3928836a89e1407d18f2a"
             },
             "src/third_party/nan": {
                 "fetcher": "fetchFromGitHub",
@@ -873,12 +873,12 @@
                 "rev": "78d3966b3c331292ea29ec38661b25df0a245948"
             }
         },
-        "version": "28.1.1",
+        "version": "28.1.3",
         "modules": "119",
-        "chrome": "120.0.6099.109",
+        "chrome": "120.0.6099.199",
         "node": "18.18.2",
         "chromium": {
-            "version": "120.0.6099.109",
+            "version": "120.0.6099.199",
             "deps": {
                 "gn": {
                     "version": "2023-10-23",
@@ -888,17 +888,17 @@
                 }
             }
         },
-        "chromium_npm_hash": "sha256-zexxXAAJDnhMmh7HfBO1V1z1Yds06C3gSpXacsbjUb4=",
-        "electron_yarn_hash": "0n64fi2s97ly7kl0f8922sgavdm6qh24ms3qwf21663a1igdd4jn"
+        "electron_yarn_hash": "0n64fi2s97ly7kl0f8922sgavdm6qh24ms3qwf21663a1igdd4jn",
+        "chromium_npm_hash": "sha256-zexxXAAJDnhMmh7HfBO1V1z1Yds06C3gSpXacsbjUb4="
     },
     "27": {
         "deps": {
             "src/electron": {
                 "fetcher": "fetchFromGitHub",
-                "hash": "sha256-695wQ4JKMWTLE/ZNn9LCFkhn2xsn5Roce8AZ1LYEJKI=",
+                "hash": "sha256-C9Oj6xuPFnj5Wh+VeeXc9AJ3Pgxq+SGn624OFWseO4M=",
                 "owner": "electron",
                 "repo": "electron",
-                "rev": "v27.2.1"
+                "rev": "v27.2.2"
             },
             "src": {
                 "fetcher": "fetchFromGitiles",
@@ -1765,7 +1765,7 @@
                 "rev": "78d3966b3c331292ea29ec38661b25df0a245948"
             }
         },
-        "version": "27.2.1",
+        "version": "27.2.2",
         "modules": "118",
         "chrome": "118.0.5993.159",
         "node": "18.17.1",
@@ -1787,10 +1787,10 @@
         "deps": {
             "src/electron": {
                 "fetcher": "fetchFromGitHub",
-                "hash": "sha256-BVuGSlIH2iuCGV8P6TvesEx92dgJAMevHHXELKwWWk8=",
+                "hash": "sha256-KTvbe8reOTqzqXoPHBQY24mxvUSokGh8JlxCJTdNxbc=",
                 "owner": "electron",
                 "repo": "electron",
-                "rev": "v26.6.4"
+                "rev": "v26.6.5"
             },
             "src": {
                 "fetcher": "fetchFromGitiles",
@@ -2609,7 +2609,7 @@
                 "rev": "78d3966b3c331292ea29ec38661b25df0a245948"
             }
         },
-        "version": "26.6.4",
+        "version": "26.6.5",
         "modules": "116",
         "chrome": "116.0.5845.228",
         "node": "18.16.1",
@@ -2624,7 +2624,7 @@
                 }
             }
         },
-        "electron_yarn_hash": "05wkb1m0yjbai4153y49kwr1v2lj14fg75aqlvmmrhf3bxp9lg5g",
-        "chromium_npm_hash": "sha256-5cjqpYB45nw2gop54VP+tL7/0w63nQGfQ4x6a6KS7XQ="
+        "chromium_npm_hash": "sha256-5cjqpYB45nw2gop54VP+tL7/0w63nQGfQ4x6a6KS7XQ=",
+        "electron_yarn_hash": "05wkb1m0yjbai4153y49kwr1v2lj14fg75aqlvmmrhf3bxp9lg5g"
     }
 }