From 6908ecac521c0ddf3d8af75adefa7209f7a8719c Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 9 Mar 2021 15:38:16 +0100 Subject: 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. --- maps/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'maps/default.nix') 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 ''; } -- cgit v1.2.3