aboutsummaryrefslogtreecommitdiff
path: root/front/default.nix
diff options
context:
space:
mode:
authorMewp2021-01-10 23:55:57 +0100
committerMewp2021-01-10 23:55:57 +0100
commit0f3b3d4807b674d7f7ec83ab347f84839a87ffce (patch)
treefd5dc1f62a8adf3ab7f924f65836c18c912bf9e0 /front/default.nix
parent09e8c81cc18f4781f59d22dd8ab1654c5b846de2 (diff)
Fix front env vars. Update env to a working WA version.
Diffstat (limited to '')
-rw-r--r--front/default.nix18
1 files changed, 12 insertions, 6 deletions
diff --git a/front/default.nix b/front/default.nix
index ecb5afb..d3276e7 100644
--- a/front/default.nix
+++ b/front/default.nix
@@ -1,5 +1,5 @@
{ stdenv
-, fetchFromGitHub
+, fetchFromGitLab
, makeWrapper
, workadventure-messages
, yarn2nix-moretea
@@ -8,15 +8,21 @@
, ... }:
let
- envVar = (name: lib.optionalAttrs (environment ? name) { name = environment.${name}; });
+ envVar = (name: lib.optionalAttrs (environment ? ${name}) { ${name} = environment.${name}; });
envVars = envVar "DEBUG_MODE"
// envVar "API_URL"
// envVar "UPLOADER_URL"
// envVar "ADMIN_URL"
+ // envVar "MAPS_URL"
+ // envVar "API_HOST"
+ // envVar "UPLOADER_HOST"
+ // envVar "ADMIN_HOST"
+ // envVar "MAPS_HOST"
// envVar "API_PROTOCOL"
// envVar "UPLOADER_PROTOCOL"
// envVar "ADMIN_PROTOCOL"
+ // envVar "MAPS_PROTOCOL"
// envVar "TURN_SERVER"
// envVar "TURN_USER"
// envVar "TURN_PASSWORD"
@@ -26,12 +32,12 @@ in yarn2nix-moretea.mkYarnPackage (rec {
pname = "workadventurefront";
version = "unstable";
- src = fetchFromGitHub
+ src = fetchFromGitLab
{
- owner = "thecodingmachine";
+ owner = "fediventure";
repo = "workadventure";
- rev = "284846e8a59ec0d921189ac3a46e0eb5d1e14818";
- sha256 = "1f1vi226kas7x9y8zw810q5vg1ikn4bb6ha9vnzvqk9y7jlc1n8q";
+ rev = "e77551c629b0412c808843f91d072a4ce7558d7f";
+ sha256 = "1ikasdk2qhsrnh8x9sxvyjhzdiwmzimgs523cqysasz312yv4dfk";
} + "/front";
# NOTE: this is optional and generated dynamically if omitted