rmfakecloud.ui: migrate to prefetch-yarn-deps
This commit is contained in:
committed by
Matthieu Coudron
parent
ec3ae8ddf6
commit
3987aeec02
@@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
inherit version src;
|
inherit version src;
|
||||||
@@ -10,12 +10,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-37P+acjaeG7TCyLoIHIHsB+DCUOsQOJ1H9T5SgajtLc=";
|
sha256 = "sha256-37P+acjaeG7TCyLoIHIHsB+DCUOsQOJ1H9T5SgajtLc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ fixup_yarn_lock yarn nodejs ];
|
nativeBuildInputs = [ prefetch-yarn-deps yarn nodejs ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
cd ui
|
cd ui
|
||||||
fixup_yarn_lock yarn.lock
|
fixup-yarn-lock yarn.lock
|
||||||
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
|
yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
|
||||||
yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress
|
yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress
|
||||||
patchShebangs node_modules
|
patchShebangs node_modules
|
||||||
|
|||||||
Reference in New Issue
Block a user