dd9788fa73
I was having trouble tracking the growth of corona virus cases in the UK. Thankfully someone is publishing some daily COVID data as JSON. I downloaded that data manually and plotted it using the chart.js library as a programming exercise with Mimi. Now I'm attempting to deploy to https://wpcarro.dev/covid-uk. TODO(wpcarro): Prefer the live API data instead my soon-to-be-stale downloaded.
14 lines
322 B
Nix
14 lines
322 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "covid-uk";
|
|
buildInputs = [];
|
|
src = ./.;
|
|
buildPhase = ''
|
|
mkdir -p $out
|
|
mkdir -p $out/node_modules/chart.js/dist
|
|
cp $src/node_modules/chart.js/dist/Chart.bundle.min.js $out/node_modules/chart.js/dist
|
|
cp $src/src/* $out
|
|
'';
|
|
dontInstall = true;
|
|
}
|