ratman: migrate to prefetch-yarn-deps (#269285)

This commit is contained in:
Felix Bühler 2023-12-12 10:48:10 +01:00 committed by GitHub
parent ecb742f56f
commit d92daec27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
, protobuf
, rustPlatform
, fetchYarnDeps
, fixup_yarn_lock
, prefetch-yarn-deps
, stdenv
, yarn
, nodejs
@ -49,7 +49,7 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-pWjKL41r/bTvWv+5qCgCFVL9+o64BiV2/ISdLeKEOqE=";
};
nativeBuildInputs = [ yarn nodejs ];
nativeBuildInputs = [ yarn nodejs prefetch-yarn-deps ];
outputs = [ "out" "dist" ];
@ -61,7 +61,7 @@ rustPlatform.buildRustPackage rec {
yarn config --offline set yarn-offline-mirror ${yarnDeps}
# Fixup "resolved"-entries in yarn.lock to match our offline cache
${fixup_yarn_lock}/bin/fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive