about summary refs log tree commit diff
path: root/pkgs/servers/mastodon
diff options
context:
space:
mode:
authorRobert Gerus <ar@is-a.cat>2022-09-25 20:39:15 +0200
committerKerstin <kerstin@erictapen.name>2022-09-25 23:16:59 +0200
commit65f1654de2c36add85ebab7bcb70dd112ff2df2c (patch)
tree559886bceccac193143cd35d0904b823a724f2c8 /pkgs/servers/mastodon
parent81231a82dea880804977160cddfc2b8ee33110b5 (diff)
mastodon: Fix compatibility for openssl 3
https://github.com/mastodon/mastodon/issues/17924
Diffstat (limited to 'pkgs/servers/mastodon')
-rw-r--r--pkgs/servers/mastodon/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/mastodon/default.nix b/pkgs/servers/mastodon/default.nix
index 17ecdc60ef933..a312ecb76da75 100644
--- a/pkgs/servers/mastodon/default.nix
+++ b/pkgs/servers/mastodon/default.nix
@@ -52,6 +52,9 @@ stdenv.mkDerivation rec {
 
     buildPhase = ''
       export HOME=$PWD
+      # 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
       yarn config --offline set yarn-offline-mirror ${yarnOfflineCache}
       yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts --no-progress