Skip to content

Commit

Permalink
electron: migrate to fixup-yarn-lock from prefetch-yarn-deps (#269933)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored Jan 14, 2024
1 parent 42e8dd4 commit 02266dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/tools/electron/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, python3
, fetchYarnDeps
, fetchNpmDeps
, fixup_yarn_lock
, prefetch-yarn-deps
, npmHooks
, yarn
, substituteAll
Expand All @@ -27,7 +27,7 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
inherit (info) version;
buildTargets = [ "electron:electron_dist_zip" ];

nativeBuildInputs = base.nativeBuildInputs ++ [ nodejs yarn fixup_yarn_lock unzip npmHooks.npmConfigHook ];
nativeBuildInputs = base.nativeBuildInputs ++ [ nodejs yarn prefetch-yarn-deps unzip npmHooks.npmConfigHook ];
buildInputs = base.buildInputs ++ [ libnotify ];

electronOfflineCache = fetchYarnDeps {
Expand Down Expand Up @@ -107,7 +107,7 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
cd electron
export HOME=$TMPDIR/fake_home
yarn config --offline set yarn-offline-mirror $electronOfflineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline --frozen-lockfile --ignore-scripts --no-progress --non-interactive
)
Expand Down

0 comments on commit 02266dc

Please sign in to comment.