3
0
Fork 0
forked from mirrors/nixpkgs

rmfakecloud.ui: migrate to prefetch-yarn-deps

This commit is contained in:
Felix Buehler 2023-11-22 22:49:38 +01:00 committed by Matthieu Coudron
parent ec3ae8ddf6
commit 3987aeec02

View file

@ -1,4 +1,4 @@
{ version, src, stdenv, lib, fetchFromGitHub, fetchYarnDeps, fixup_yarn_lock, yarn, nodejs }:
{ version, src, stdenv, lib, fetchFromGitHub, fetchYarnDeps, prefetch-yarn-deps, yarn, nodejs }:
stdenv.mkDerivation rec {
inherit version src;
@ -10,12 +10,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-37P+acjaeG7TCyLoIHIHsB+DCUOsQOJ1H9T5SgajtLc=";
};
nativeBuildInputs = [ fixup_yarn_lock yarn nodejs ];
nativeBuildInputs = [ prefetch-yarn-deps yarn nodejs ];
buildPhase = ''
export HOME=$(mktemp -d)
cd ui
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress
patchShebangs node_modules