diff --git a/pkgs/by-name/ea/eas-cli/package.nix b/pkgs/by-name/ea/eas-cli/package.nix index fcbe647131d1..c9cc2e57df1e 100644 --- a/pkgs/by-name/ea/eas-cli/package.nix +++ b/pkgs/by-name/ea/eas-cli/package.nix @@ -18,16 +18,26 @@ let hash = "sha256-Z+PtS88Rv9Vv6FA15KxSBWCmOtwmTqO1etgCV7WaTXo="; }; missingHashes = ./missing-hashes.json; + patches = [ + # Remove after upstream updates to Yarn 4.14 + # https://github.com/expo/eas-cli/blob/v18.7.0/package.json#L37 + ./yarn-4.14-support.patch + ]; in # cc is necessary because of building an npm package without a prebuilt binary # for ARM. See comment in nativeBuildInputs below. stdenv.mkDerivation (finalAttrs: { pname = "eas-cli"; - inherit src version missingHashes; + inherit + src + version + missingHashes + patches + ; yarnOfflineCache = yarn-berry_4.fetchYarnBerryDeps { - inherit src missingHashes; - hash = "sha256-ZlbCHWEwVaYCfzowrm1qrM1MpLo5vNmEG5bWzWT/cTU="; + inherit src missingHashes patches; + hash = "sha256-KtFLJc2bEBS0sgTqbF68574fFMxwSlaSKcR0RedVJ4k="; }; nativeBuildInputs = [ diff --git a/pkgs/by-name/ea/eas-cli/yarn-4.14-support.patch b/pkgs/by-name/ea/eas-cli/yarn-4.14-support.patch new file mode 100644 index 000000000000..2591021c6269 --- /dev/null +++ b/pkgs/by-name/ea/eas-cli/yarn-4.14-support.patch @@ -0,0 +1,20 @@ +diff --git a/.yarnrc.yml b/.yarnrc.yml +--- a/.yarnrc.yml ++++ b/.yarnrc.yml +@@ -1,2 +1,5 @@ + defaultSemverRangePrefix: '' + nodeLinker: node-modules ++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 +