admin-fe: Migrate to prefetch-yarn-deps

cf. <https://github.com/NixOS/nixpkgs/issues/240174>
This commit is contained in:
Mikael Voss 2023-08-18 14:37:19 +02:00 committed by Yaya
parent 82ff38ce4a
commit 501b1e3506

View File

@ -1,7 +1,7 @@
{ lib
, stdenv
, fetchFromGitea, fetchYarnDeps
, fixup_yarn_lock, yarn, nodejs
, prefetch-yarn-deps, yarn, nodejs
, python3, pkg-config, libsass
}:
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [
fixup_yarn_lock
prefetch-yarn-deps
yarn
nodejs
pkg-config
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
export HOME="$(mktemp -d)"
yarn config --offline set yarn-offline-mirror ${lib.escapeShellArg offlineCache}
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules/cross-env