tandoor-recipes: migrate to prefetch-yarn-deps

This commit is contained in:
Felix Buehler 2023-11-22 23:27:13 +01:00
parent 3832b75e4e
commit 123143a848

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/