Merge pull request #269319 from Stunkymonkey/tandoor-recipes-migrate-prefetch-yarn-deps

tandoor-recipes: migrate to prefetch-yarn-deps
This commit is contained in:
Felix Bühler 2023-11-23 22:59:52 +01:00 committed by GitHub
commit 40de593842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchYarnDeps, fixup_yarn_lock, callPackage, nodejs }:
{ stdenv, fetchYarnDeps, prefetch-yarn-deps, callPackage, nodejs }:
let
common = callPackage ./common.nix { };
in
@ -14,7 +14,7 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [
fixup_yarn_lock
prefetch-yarn-deps
nodejs
nodejs.pkgs.yarn
];
@ -24,7 +24,7 @@ stdenv.mkDerivation {
export HOME=$(mktemp -d)
yarn config --offline set yarn-offline-mirror "$yarnOfflineCache"
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
command -v yarn
yarn install --frozen-lockfile --offline --no-progress --non-interactive
patchShebangs node_modules/