diff options
author | stuebinm | 2021-03-09 15:38:16 +0100 |
---|---|---|
committer | stuebinm | 2021-03-09 15:38:16 +0100 |
commit | 6908ecac521c0ddf3d8af75adefa7209f7a8719c (patch) | |
tree | 62714c31f3c0cef23d56d82f05682fbf729dcec6 /maps | |
parent | ead8c570b6dfd00531bf7ada77e08bbd9955b731 (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.nix | 7 |
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 ''; } |