11 pname = "synapse-admin";
13 src = fetchFromGitHub {
14 owner = "Awesome-Technologies";
17 sha256 = "sha256-3MC5PCEwYfZzJy9AW9nHTpvU49Lk6wbYC4Rcv9J9MEg=";
20 packageJSON = ./package.json;
22 offlineCache = fetchYarnDeps {
23 yarnLock = "${src}/yarn.lock";
24 hash = "sha256-vpCwPL1B+hbIaVSHtlkGjPAteu9BFNNmCTE66CSyFkg=";
28 (writeShellScriptBin "git" "echo ${version}")
31 NODE_ENV = "production";
32 ${if baseUrl != null then "REACT_APP_SERVER" else null} = baseUrl;
34 # error:0308010C:digital envelope routines::unsupported
35 NODE_OPTIONS = "--openssl-legacy-provider";
40 export HOME=$(mktemp -d)
41 yarn --offline run build
49 cp -r deps/synapse-admin/dist $out
58 description = "Admin UI for Synapse Homeservers";
59 homepage = "https://github.com/Awesome-Technologies/synapse-admin";
60 license = licenses.asl20;
61 platforms = platforms.all;
62 maintainers = with maintainers; [