Skip to content

Commit

Permalink
mastodon: migrate to prefetch-yarn-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored and erictapen committed Nov 23, 2023
1 parent 7b90e7b commit f880f6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/servers/mastodon/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, nodejs-slim, bundlerEnv, nixosTests
, yarn, callPackage, imagemagick, ffmpeg, file, ruby, writeShellScript
, fetchYarnDeps, fixup_yarn_lock
, fetchYarnDeps, prefetch-yarn-deps
, brotli

# Allow building a fork or custom version of Mastodon:
Expand Down Expand Up @@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
hash = yarnHash;
};

nativeBuildInputs = [ fixup_yarn_lock nodejs-slim yarn mastodonGems mastodonGems.wrappedRuby brotli ];
nativeBuildInputs = [ prefetch-yarn-deps nodejs-slim yarn mastodonGems mastodonGems.wrappedRuby brotli ];

RAILS_ENV = "production";
NODE_ENV = "production";
Expand All @@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
# This option is needed for openssl-3 compatibility
# Otherwise we encounter this upstream issue: https://github.com/mastodon/mastodon/issues/17924
export NODE_OPTIONS=--openssl-legacy-provider
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
Expand Down

0 comments on commit f880f6b

Please sign in to comment.