summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
authorV <v@unfathomable.blue>2021-12-23 08:17:24 +0100
committerV <v@unfathomable.blue>2021-12-23 08:17:24 +0100
commitb41a93355ebd37312266b5c1e599f5008414e396 (patch)
tree30370a4ce015a377cafc89e3a4e00de3f9a49a3c /ripple
parentd09fac5aea9ab53d281f7bc93c01fd0102d2311a (diff)
downloadunf-legacy-b41a93355ebd37312266b5c1e599f5008414e396.tar.zst
ripple/website/nix: fix deployment
Our post-update deployment hook expects a callPackage-able default.nix
in the root of the repository. Let's fix that! I'm moving the nixpkgs
wrapper to another file, so it's still easy to build. Placeholder page
until we've actually got content.

Change-Id: I5e3ecabe0025c2361e15e31b3c520be6410281ce
Diffstat (limited to 'ripple')
-rw-r--r--ripple/website/build.nix2
-rw-r--r--ripple/website/default.nix19
2 files changed, 7 insertions, 14 deletions
diff --git a/ripple/website/build.nix b/ripple/website/build.nix
new file mode 100644
index 0000000..b87c642
--- /dev/null
+++ b/ripple/website/build.nix
@@ -0,0 +1,2 @@
+let pkgs = import <nixpkgs> {};
+in pkgs.callPackage ./default.nix {}
diff --git a/ripple/website/default.nix b/ripple/website/default.nix
index f72e5af..3dad32c 100644
--- a/ripple/website/default.nix
+++ b/ripple/website/default.nix
@@ -1,16 +1,7 @@
-let pkgs = import <nixpkgs> {};
-in pkgs.runCommand "ripple.unfathomable.blue" {
-  nativeBuildInputs = [ pkgs.lowdown ];
-} ''
-  mkdir $out
-  for x in ${./pages}/*.md; do
-    {
-      cat <<EOS
+{ writeTextDir }:
+
+writeTextDir "index.html" ''
   <!DOCTYPE html>
-  <title>$(lowdown -X title $x)</title>
-  <style>body { max-width: 72ch; margin: auto; }</style>
-  EOS
-      lowdown --html-no-head-ids $x
-    } >$out/$(basename $x .md).html
-  done
+  <title>Ripple</title>
+  WIP
 ''