anki: migrate to prefetch-yarn-deps

This commit is contained in:
Felix Buehler 2023-11-22 23:05:09 +01:00
parent 3832b75e4e
commit 9d1029f253

View file

@ -5,13 +5,13 @@
, cargo , cargo
, fetchFromGitHub , fetchFromGitHub
, fetchYarnDeps , fetchYarnDeps
, fixup_yarn_lock
, installShellFiles , installShellFiles
, lame , lame
, mpv-unwrapped , mpv-unwrapped
, ninja , ninja
, nodejs , nodejs
, nodejs-slim , nodejs-slim
, prefetch-yarn-deps
, protobuf , protobuf
, python3 , python3
, qt6 , qt6
@ -100,15 +100,15 @@ let
inherit version src yarnOfflineCache; inherit version src yarnOfflineCache;
nativeBuildInputs = [ nativeBuildInputs = [
fixup_yarn_lock
nodejs-slim nodejs-slim
prefetch-yarn-deps
yarn yarn
]; ];
configurePhase = '' configurePhase = ''
export HOME=$NIX_BUILD_TOP export HOME=$NIX_BUILD_TOP
yarn config --offline set yarn-offline-mirror $yarnOfflineCache yarn config --offline set yarn-offline-mirror $yarnOfflineCache
fixup_yarn_lock yarn.lock fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/ patchShebangs node_modules/
''; '';
@ -135,8 +135,8 @@ python3.pkgs.buildPythonApplication {
nativeBuildInputs = [ nativeBuildInputs = [
fakeGit fakeGit
fixup_yarn_lock
offlineYarn offlineYarn
prefetch-yarn-deps
cargo cargo
installShellFiles installShellFiles
@ -232,7 +232,7 @@ python3.pkgs.buildPythonApplication {
export HOME=$NIX_BUILD_TOP export HOME=$NIX_BUILD_TOP
yarn config --offline set yarn-offline-mirror $yarnOfflineCache yarn config --offline set yarn-offline-mirror $yarnOfflineCache
fixup_yarn_lock yarn.lock fixup-yarn-lock yarn.lock
patchShebangs ./ninja patchShebangs ./ninja
PIP_USER=1 ./ninja build wheels PIP_USER=1 ./ninja build wheels