about summary refs log tree commit diff
path: root/users/glittershark/gws.fyi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/gws.fyi/default.nix')
-rw-r--r--users/glittershark/gws.fyi/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/glittershark/gws.fyi/default.nix b/users/glittershark/gws.fyi/default.nix
index 6ec1262f67be..38d64cef5700 100644
--- a/users/glittershark/gws.fyi/default.nix
+++ b/users/glittershark/gws.fyi/default.nix
@@ -5,9 +5,17 @@ let
   resume = import ../resume args;
   bucket = "s3://gws.fyi";
   distributionID = "E2ST43JNBH8C64";
+
+  css = runCommand "main.css" {
+    buildInputs = [ pkgs.minify ];
+  } ''
+    minify --type css < ${./main.css} > $out
+  '';
+
   website =
     runCommand "gws.fyi" { } ''
       mkdir -p $out
+      cp ${css} $out/main.css
       cp ${site.index} $out/index.html
       cp ${resume} $out/resume.pdf
     '';