aboutsummaryrefslogtreecommitdiff
path: root/front/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--front/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/front/default.nix b/front/default.nix
index d7d9fa6..83ccdf4 100644
--- a/front/default.nix
+++ b/front/default.nix
@@ -1,4 +1,4 @@
-workadventuresrc:
+workadventuresrc: waname:
{ stdenv
, makeWrapper
@@ -14,15 +14,13 @@ let
in
yarn2nix-moretea.mkYarnPackage
(rec {
- pname = "workadventurefront";
+ pname = "workadventurefront-${waname}";
version = "unstable";
+ name = pname + "-" + version;
- # TODO: perhaps move this into its own file, to make it easily
- # replacable across all workadventure packages.
src = "${workadventuresrc}/front";
- # NOTE: this is optional and generated dynamically if omitted
- yarnNix = ./yarn.nix;
+ yarnNix = ./. + "/${waname}.nix";
nativeBuildInputs = [
makeWrapper
@@ -48,9 +46,9 @@ yarn2nix-moretea.mkYarnPackage
buildPhase = ''
mkdir -p $out
- ln -s ${workadventure.messages.outPath}/generated deps/${pname}/src/Messages/generated
+ ln -s ${workadventure.messages.outPath}/generated deps/workadventurefront/src/Messages/generated
HOME=$TMPDIR yarn --offline run build
- cp -r deps/${pname}/dist/ $out/
+ cp -r deps/workadventurefront/dist/ $out/
'';
distPhase = ":";