tvl-depot/covid-uk/default.nix
William Carroll dd9788fa73 Create line chart of UK confirmed corona virus cases
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.
2020-03-18 22:08:09 +00:00

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;
}