From b752a370b1f5911cd6f85fd4c501840c4d17082d Mon Sep 17 00:00:00 2001 From: ckie Date: Fri, 30 Sep 2022 01:55:46 +0300 Subject: [PATCH] synapse-admin: fix build after 7753a94a354 The update to nodejs v18 in 7753a94a354 broke this derivation with a error:0308010C:digital envelope routines::unsupported in react-scripts. This adds a workaround for now as I have not tried updating to see if upstream has fixed this. --- pkgs/tools/admin/synapse-admin/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/admin/synapse-admin/default.nix b/pkgs/tools/admin/synapse-admin/default.nix index 098cc57d97e7..2cde74ba4532 100644 --- a/pkgs/tools/admin/synapse-admin/default.nix +++ b/pkgs/tools/admin/synapse-admin/default.nix @@ -23,6 +23,9 @@ mkYarnPackage rec { NODE_ENV = "production"; ${if baseUrl != null then "REACT_APP_SERVER" else null} = baseUrl; + # error:0308010C:digital envelope routines::unsupported + NODE_OPTIONS = "--openssl-legacy-provider"; + buildPhase = '' runHook preBuild