about summary refs log blame commit diff
path: root/website/sandbox/covid-uk/default.nix.ignore
blob: 309b1fa64b4df169f0458ff64ffc39adb586eb1e (plain) (tree)
1
2
3
4
5
6
7
8




                          
                                                         

                                                                                



                                                                                          
                                           


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