nix/pkgs/lightspeed-react: add websocketURL parameter
This commit is contained in:
parent
f91109cb50
commit
87e7dae108
1 changed files with 3 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue