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