about summary refs log tree commit diff
path: root/website/goals/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'website/goals/default.nix')
-rw-r--r--website/goals/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/website/goals/default.nix b/website/goals/default.nix
index 664e87a3c914..4337d3f0ce65 100644
--- a/website/goals/default.nix
+++ b/website/goals/default.nix
@@ -1,10 +1,19 @@
 { pkgs, ... }:
 
 pkgs.stdenv.mkDerivation {
-  name = "goals";
-  src = ./.;
+  name = "goals-webpage";
+  srcs = ./.;
+  buildInputs = with pkgs; [
+    nodejs
+    # Exposes lscpu for parcel.js
+    utillinux
+  ];
+  # parcel.js needs number of CPUs
+  PARCEL_WORKERS = "1";
+  buildPhase = ''
+    npx parcel build src/index.html
+  '';
   installPhase = ''
-    mkdir -p $out
-    cp $srcs/index.{html,jsx} $out
+    mv dist $out
   '';
 }