ytmdesktop: fix for Yarn 4.14

This commit is contained in:
Dimitar Nestorov
2026-05-09 10:59:38 +03:00
committed by K900
parent 104ae1c350
commit 254f27cbe9
2 changed files with 28 additions and 2 deletions
+6 -2
View File
@@ -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 = [
@@ -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