Move sandbox into website

Nest the sandbox work under ./website.
This commit is contained in:
William Carroll 2020-03-20 00:47:53 +00:00
parent 1d5ab45303
commit f4fea2346e
12 changed files with 3 additions and 67285 deletions

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "covid-uk";
buildInputs = [];
src = ./.;
# TODO(wpcarro): Need to run `yarn install` somehow.
# TODO(wpcarro): Need to run `npx tailwindcss build styles.css -o output.css`.
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/index.html $src/output.css $out
'';
dontInstall = true;
}