aboutsummaryrefslogtreecommitdiff
path: root/front/default.nix
diff options
context:
space:
mode:
authorhexchen2021-08-22 21:34:01 +0000
committerstuebinm2021-08-23 14:31:21 +0200
commit903f2b9fa03faba3816f6d10738bcbb3c07e4bc2 (patch)
treee754bc24293aa28e63061b2f2cf0970091148a79 /front/default.nix
parent9adf5b9de18ebfbd5e688bb1b3f040cbc8602c6f (diff)
tcm: upgrade to 1.4.14 and fix the build
Diffstat (limited to '')
-rw-r--r--front/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/front/default.nix b/front/default.nix
index 95606e0..e6f7dd9 100644
--- a/front/default.nix
+++ b/front/default.nix
@@ -15,7 +15,7 @@ workadventuresrc: waname:
, yarn2nix-moretea
, lib
, replace
-, environment ? {PUSHER_URL = "https://example.org/dummy/pusher";}
+, environment ? {PUSHER_URL = "https://example.org/dummy/pusher"; ADMIN_URL = "https://example.org/dummy/admin";}
, ... }:
let
@@ -57,7 +57,8 @@ yarn2nix-moretea.mkYarnPackage
buildPhase = ''
mkdir -p $out
- ln -s ${workadventure.messages.outPath}/generated deps/workadventurefront/src/Messages/generated
+ cp -r ${workadventure.messages.outPath}/generated deps/workadventurefront/src/Messages/generated
+ ln -sf $PWD/node_modules deps/workadventurefront/
HOME=$TMPDIR yarn --offline run build
cp -r deps/workadventurefront/dist/ $out/
'';