2020-03-18 22:29:11 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = "covid-uk";
|
|
|
|
buildInputs = [];
|
2020-07-02 14:28:59 +02:00
|
|
|
src = builtins.path { path = ./.; name = "covid-uk"; };
|
2020-03-19 12:53:57 +01:00
|
|
|
# TODO(wpcarro): Need to run `yarn install` somehow.
|
|
|
|
# TODO(wpcarro): Need to run `npx tailwindcss build styles.css -o output.css`.
|
2020-03-18 22:29:11 +01:00
|
|
|
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
|
2020-03-19 12:53:57 +01:00
|
|
|
cp $src/index.html $src/output.css $out
|
2020-03-18 22:29:11 +01:00
|
|
|
'';
|
|
|
|
dontInstall = true;
|
|
|
|
}
|