about summary refs log tree commit diff
path: root/website/habits
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-27T15·55+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-27T16·02+0000
commit48cdb69efb904c14849b6e4ed803749065d993cc (patch)
treecc9607f7bd32bc4e7aaf8164422641c5efd610f8 /website/habits
parentf2ba5aca310ebc7c832e3ec5a41bc70a148d5ed6 (diff)
Publish habits as a webpage
I think it might be a good idea to version control my habits, so that I can
audit them as they change.

I'm publishing these on my website, so that I can refer to them wherever I had
internet.
Diffstat (limited to 'website/habits')
-rw-r--r--website/habits/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/website/habits/default.nix b/website/habits/default.nix
new file mode 100644
index 000000000000..e2655846e0cf
--- /dev/null
+++ b/website/habits/default.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+
+pkgs.stdenv.mkDerivation {
+  name = "habits-webpage";
+  src = ../../org;
+  buildInputs = [];
+  buildPhase = ''
+    ${pkgs.pandoc}/bin/pandoc $src/habits.org -o index.html
+  '';
+  installPhase = ''
+    mv index.html $out
+  '';
+}