diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-20T00·47+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-20T00·52+0000 |
commit | f4fea2346e69235f8346ae626359fa1bf901282d (patch) | |
tree | 45e45ebc8b6bd70f213e625c904076642b7d5215 /website/sandbox/covid-uk/default.nix | |
parent | 1d5ab45303c700e188a1f041f6ff6630e96c7f03 (diff) |
Move sandbox into website
Nest the sandbox work under ./website.
Diffstat (limited to 'website/sandbox/covid-uk/default.nix')
-rw-r--r-- | website/sandbox/covid-uk/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/website/sandbox/covid-uk/default.nix b/website/sandbox/covid-uk/default.nix new file mode 100644 index 000000000000..0f5545c2f75d --- /dev/null +++ b/website/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; +} |