diff options
Diffstat (limited to 'sandbox/covid-uk/default.nix')
-rw-r--r-- | sandbox/covid-uk/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sandbox/covid-uk/default.nix b/sandbox/covid-uk/default.nix new file mode 100644 index 000000000000..0f5545c2f75d --- /dev/null +++ b/sandbox/covid-uk/default.nix @@ -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; +} |