diff options
Diffstat (limited to 'users/wpcarro/boilerplate/typescript/default.nix')
-rw-r--r-- | users/wpcarro/boilerplate/typescript/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/users/wpcarro/boilerplate/typescript/default.nix b/users/wpcarro/boilerplate/typescript/default.nix new file mode 100644 index 000000000000..84949cae7f3c --- /dev/null +++ b/users/wpcarro/boilerplate/typescript/default.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: + +pkgs.stdenv.mkDerivation { + name = "typescript"; + srcs = builtins.path { path = ./.; name = "typescript"; }; + buildInputs = with pkgs; [ + nodejs + # Exposes lscpu for parcel.js + utillinux + ]; + # parcel.js needs number of CPUs + PARCEL_WORKERS = "1"; + buildPhase = '' + export HOME="." + npx parcel build src/index.html --public-url ./ + ''; + installPhase = '' + mv dist $out + ''; + + # TODO(wpcarro): This doesn't build at all. + meta.ci.skip = true; +} |