tvl-depot/users/wpcarro/website/sandbox/covid-uk/default.nix.ignore
Vincent Ambo 019f8fd211 subtree(users/wpcarro): docking briefcase at '24f5a642'
git-subtree-dir: users/wpcarro
git-subtree-mainline: 464bbcb15c
git-subtree-split: 24f5a642af
Change-Id: I6105b3762b79126b3488359c95978cadb3efa789
2021-12-14 02:15:47 +03:00

16 lines
524 B
Text

{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "covid-uk";
buildInputs = [];
src = builtins.path { path = ./.; name = "covid-uk"; };
# 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;
}