diff --git a/pkgs/by-name/yt/ytmdesktop/bump-yauzl.patch b/pkgs/by-name/yt/ytmdesktop/bump-yauzl.patch new file mode 100644 index 000000000000..705807420f82 --- /dev/null +++ b/pkgs/by-name/yt/ytmdesktop/bump-yauzl.patch @@ -0,0 +1,51 @@ +diff --git a/yarn.lock b/yarn.lock +index baa6475..4ff4481 100644 +--- a/yarn.lock ++++ b/yarn.lock +@@ -2952,13 +2952,6 @@ __metadata: + languageName: node + linkType: hard + +-"buffer-crc32@npm:~0.2.3": +- version: 0.2.13 +- resolution: "buffer-crc32@npm:0.2.13" +- checksum: 10c0/cb0a8ddf5cf4f766466db63279e47761eb825693eeba6a5a95ee4ec8cb8f81ede70aa7f9d8aeec083e781d47154290eb5d4d26b3f7a465ec57fb9e7d59c47150 +- languageName: node +- linkType: hard +- + "buffer-from@npm:^1.0.0": + version: 1.1.2 + resolution: "buffer-from@npm:1.1.2" +@@ -4750,15 +4743,6 @@ __metadata: + languageName: node + linkType: hard + +-"fd-slicer@npm:~1.1.0": +- version: 1.1.0 +- resolution: "fd-slicer@npm:1.1.0" +- dependencies: +- pend: "npm:~1.2.0" +- checksum: 10c0/304dd70270298e3ffe3bcc05e6f7ade2511acc278bc52d025f8918b48b6aa3b77f10361bddfadfe2a28163f7af7adbdce96f4d22c31b2f648ba2901f0c5fc20e +- languageName: node +- linkType: hard +- + "fdir@npm:^6.4.4": + version: 6.4.5 + resolution: "fdir@npm:6.4.5" +@@ -9915,12 +9899,11 @@ __metadata: + linkType: hard + + "yauzl@npm:^2.10.0": +- version: 2.10.0 +- resolution: "yauzl@npm:2.10.0" ++ version: 3.4.0 ++ resolution: "yauzl@npm:3.4.0" + dependencies: +- buffer-crc32: "npm:~0.2.3" +- fd-slicer: "npm:~1.1.0" +- checksum: 10c0/f265002af7541b9ec3589a27f5fb8f11cf348b53cc15e2751272e3c062cd73f3e715bc72d43257de71bbaecae446c3f1b14af7559e8ab0261625375541816422 ++ pend: "npm:~1.2.0" ++ checksum: 10c0/17a98c42c0065e8af429eb8a61f7a0e4562181ed54080366b838f34f741b6829f167f804787c86b7646bb042707f35871739f053de0548285e405a2eae4da025 + languageName: node + linkType: hard + diff --git a/pkgs/by-name/yt/ytmdesktop/package.nix b/pkgs/by-name/yt/ytmdesktop/package.nix index bc40ef00f13a..84ef3a767a3d 100644 --- a/pkgs/by-name/yt/ytmdesktop/package.nix +++ b/pkgs/by-name/yt/ytmdesktop/package.nix @@ -47,6 +47,10 @@ stdenv.mkDerivation (finalAttrs: { # Remove after upstream updates to Yarn 4.14 # https://github.com/ytmdesktop/ytmdesktop/blob/v2.0.11/package.json#L77 ./yarn-4.14-support.patch + + # zip extraction fails on newer nodejs versions without this fix + # generated by running `yarn set resolution yauzl@npm:^2.10.0 npm:^3.3.1` + ./bump-yauzl.patch ]; postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' @@ -61,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: { yarnOfflineCache = yarn-berry.fetchYarnBerryDeps { inherit (finalAttrs) src missingHashes patches; - hash = "sha256-Vvvhi1db/ld2rNz+XhtNzlgI/4z3ym6QENG0GMlZAd0="; + hash = "sha256-VpNK+44/FwHxZ+Hyx0QShpZ9fdP06VhhpoXxMFeLUzE="; }; nativeBuildInputs = [