diff options
Diffstat (limited to '')
-rw-r--r-- | maps/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/maps/default.nix b/maps/default.nix new file mode 100644 index 0000000..5142f1e --- /dev/null +++ b/maps/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, fetchFromGitHub +, makeWrapper +, yarn2nix-moretea +, ... }: + +yarn2nix-moretea.mkYarnPackage rec { + pname = "workadventuremaps"; + version = "unstable"; + + src = fetchFromGitHub + { + owner = "thecodingmachine"; + repo = "workadventure"; + rev = "6e9c71598004dc9cbab9418efb3c0ac892da7ca2"; + sha256 = "0rvra0dy631al4aylacyqldkyd6biawz2shsikgcy30nv5lzc78c"; + } + "/maps"; + + # NOTE: this is optional and generated dynamically if omitted + yarnNix = ./yarn.nix; + + nativeBuildInputs = [ makeWrapper ]; + + dontStrip = true; + + buildPhase = '' + mkdir -p $out + HOME=$TMPDIR yarn --offline run tsc + cp -r deps/${pname} $out + ''; +} |