nix/pkgs/lightspeed-react: add websocketURL parameter

This commit is contained in:
Luke Granger-Brown 2021-01-04 15:51:00 +00:00
parent f91109cb50
commit 87e7dae108

View file

@ -1,4 +1,4 @@
{ stdenv, pkgs, fetchgit, nodejs }:
{ stdenv, pkgs, fetchgit, nodejs, websocketURL ? "ws://stream.gud.software:8080/websocket" }:
let
nodePackages = import ./node-packages.nix {
@ -23,6 +23,8 @@ stdenv.mkDerivation {
patchPhase = ''
find . -name '.DS_Store' -delete
substituteInPlace src/wsUrl.js \
--replace 'ws://stream.gud.software:8080/websocket' '${websocketURL}'
'';
buildPhase = ''