06d2467c56
After deploying the version of this application that built everything in the browser, which originally was the impetus for the entire project, I learned that the babel in-browser transformer won't work. I'm not sure why, but I need to move on from this project and do other work. I ported the code to my boilerplate/typescript, which works. Wahoo!
19 lines
340 B
Nix
19 lines
340 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "goals-webpage";
|
|
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
|
|
'';
|
|
installPhase = ''
|
|
mv dist $out
|
|
'';
|
|
}
|