about summary refs log tree commit diff
path: root/sandbox/covid-uk/default.nix
blob: 0f5545c2f75d761501e48d0a101a74d900c71ff7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}