diff --git a/pkgs/by-name/yt/ytmdesktop/package.nix b/pkgs/by-name/yt/ytmdesktop/package.nix index a7e5d5ce3873..bc40ef00f13a 100644 --- a/pkgs/by-name/yt/ytmdesktop/package.nix +++ b/pkgs/by-name/yt/ytmdesktop/package.nix @@ -43,6 +43,10 @@ stdenv.mkDerivation (finalAttrs: { # instead of running git during the build process # use the .COMMIT file generated in the fetcher FOD ./git-rev-parse.patch + + # 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 ]; postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' @@ -56,8 +60,8 @@ stdenv.mkDerivation (finalAttrs: { missingHashes = ./missing-hashes.json; yarnOfflineCache = yarn-berry.fetchYarnBerryDeps { - inherit (finalAttrs) src missingHashes; - hash = "sha256-fY7JZNUz82ldgpG76+pfiz59eL3BKlfXgoH5x7dY5bM="; + inherit (finalAttrs) src missingHashes patches; + hash = "sha256-Vvvhi1db/ld2rNz+XhtNzlgI/4z3ym6QENG0GMlZAd0="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/yt/ytmdesktop/yarn-4.14-support.patch b/pkgs/by-name/yt/ytmdesktop/yarn-4.14-support.patch new file mode 100644 index 000000000000..577c6d19d696 --- /dev/null +++ b/pkgs/by-name/yt/ytmdesktop/yarn-4.14-support.patch @@ -0,0 +1,22 @@ +diff --git a/.yarnrc.yml b/.yarnrc.yml +--- a/.yarnrc.yml ++++ b/.yarnrc.yml +@@ -1,3 +1,6 @@ + nodeLinker: node-modules + +-yarnPath: .yarn/releases/yarn-4.5.1.cjs ++approvedGitRepositories: ++ - "**" ++ ++enableScripts: true +diff --git a/yarn.lock b/yarn.lock +--- a/yarn.lock ++++ b/yarn.lock +@@ -2,6 +2,6 @@ + # Manual changes might be lost - proceed with caution! + + __metadata: +- version: 8 ++ version: 9 + cacheKey: 10c0 +