about summary refs log tree commit diff
path: root/pkgs/tools/admin/synapse-admin
diff options
context:
space:
mode:
authorckie <git-525ff67@ckie.dev>2022-09-30 01:55:46 +0300
committerckie <git-525ff67@ckie.dev>2022-09-30 02:00:21 +0300
commitb752a370b1f5911cd6f85fd4c501840c4d17082d (patch)
tree2a5157e4d2cadf4db438e4171ee386da363c6adb /pkgs/tools/admin/synapse-admin
parentd1dd3b2aad2030f76fee68928b6718320664b232 (diff)
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.
Diffstat (limited to 'pkgs/tools/admin/synapse-admin')
-rw-r--r--pkgs/tools/admin/synapse-admin/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/admin/synapse-admin/default.nix b/pkgs/tools/admin/synapse-admin/default.nix
index 098cc57d97e7b..2cde74ba45325 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