Skip to content

Commit

Permalink
rmfakecloud.ui: migrate to prefetch-yarn-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored and teto committed Dec 3, 2023
1 parent ec3ae8d commit 3987aee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/servers/rmfakecloud/webui.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 3987aee

Please sign in to comment.