aboutsummaryrefslogtreecommitdiff
path: root/maps
diff options
context:
space:
mode:
authorstuebinm2021-03-09 15:38:16 +0100
committerstuebinm2021-03-09 15:38:16 +0100
commit6908ecac521c0ddf3d8af75adefa7209f7a8719c (patch)
tree62714c31f3c0cef23d56d82f05682fbf729dcec6 /maps
parentead8c570b6dfd00531bf7ada77e08bbd9955b731 (diff)
Added hasi workadventure version
wapkgs.nix new contains packages for several different versions of workadventure (so far hasi + thecodingmachine), which can both be used. Unfortunately, this appears to require some weird hacks to convince nix to sort out the dependencies without having to actually duplicate all the packaging code, but it works.
Diffstat (limited to 'maps')
-rw-r--r--maps/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/maps/default.nix b/maps/default.nix
index 6310942..230b074 100644
--- a/maps/default.nix
+++ b/maps/default.nix
@@ -1,4 +1,4 @@
-workadventuresrc:
+workadventuresrc: waname:
{ stdenv
, fetchFromGitHub
@@ -7,8 +7,9 @@ workadventuresrc:
, ... }:
yarn2nix-moretea.mkYarnPackage rec {
- pname = "workadventuremaps";
+ pname = "workadventuremaps-${waname}";
version = "unstable";
+ name = pname + "-" + version;
src = "${workadventuresrc}/maps";
@@ -22,6 +23,6 @@ yarn2nix-moretea.mkYarnPackage rec {
buildPhase = ''
mkdir -p $out
HOME=$TMPDIR yarn --offline run tsc
- cp -r deps/${pname} $out
+ cp -r deps/workadventuremaps $out
'';
}