alice-lg: migrate to prefetch-yarn-deps

This commit is contained in:
Felix Buehler 2023-11-22 22:58:46 +01:00
parent 3832b75e4e
commit d868cb9cb2

View File

@ -6,7 +6,7 @@
, yarn
, nodejs
, git
, fixup_yarn_lock
, prefetch-yarn-deps
}:
buildGoModule rec {
@ -32,7 +32,7 @@ buildGoModule rec {
hash = "sha256-NeK9IM8E2IH09SVH9lMlV3taCmqwlroo4xzmv4Q01jI=";
};
nativeBuildInputs = [ nodejs yarn git ];
nativeBuildInputs = [ nodejs yarn git prefetch-yarn-deps ];
configurePhase = ''
runHook preConfigure
@ -43,7 +43,7 @@ buildGoModule rec {
yarn config --offline set yarn-offline-mirror $yarnOfflineCache
# 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
patchShebangs node_modules/