From 87e7dae10894b6e0c136692bec882007ffcd9cd3 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 4 Jan 2021 15:51:00 +0000 Subject: [PATCH] nix/pkgs/lightspeed-react: add websocketURL parameter --- nix/pkgs/lightspeed/lightspeed-react/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/lightspeed/lightspeed-react/default.nix b/nix/pkgs/lightspeed/lightspeed-react/default.nix index ef1266057a..4687fa181a 100644 --- a/nix/pkgs/lightspeed/lightspeed-react/default.nix +++ b/nix/pkgs/lightspeed/lightspeed-react/default.nix @@ -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 = ''