aboutsummaryrefslogtreecommitdiff
path: root/maps/default.nix
blob: 63109426503fd0b4db107a59608367bc9d6a2505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
workadventuresrc:

{ stdenv
, fetchFromGitHub
, makeWrapper
, yarn2nix-moretea
, ... }:

yarn2nix-moretea.mkYarnPackage rec {
  pname = "workadventuremaps";
  version = "unstable";

  src = "${workadventuresrc}/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
  '';
}