tvl-depot/website/habitgarden/default.nix
William Carroll af969a7641 Prototype my digital habits journal
Trying to obviate my Google Sheets spreadsheet in favor of a more focused web
app.
2020-03-30 20:28:38 +01:00

19 lines
353 B
Nix

{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "typescript";
srcs = ./.;
buildInputs = with pkgs; [
nodejs
# Exposes lscpu for parcel.js
utillinux
];
# parcel.js needs number of CPUs
PARCEL_WORKERS = "1";
buildPhase = ''
npx parcel build src/index.html --public-url ./
'';
installPhase = ''
mv dist $out
'';
}