From 65f1654de2c36add85ebab7bcb70dd112ff2df2c Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Sun, 25 Sep 2022 20:39:15 +0200 Subject: [PATCH] mastodon: Fix compatibility for openssl 3 https://github.com/mastodon/mastodon/issues/17924 --- pkgs/servers/mastodon/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/mastodon/default.nix b/pkgs/servers/mastodon/default.nix index 17ecdc60ef93..a312ecb76da7 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