From 48cdb69efb904c14849b6e4ed803749065d993cc Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 27 Mar 2020 15:55:26 +0000 Subject: 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. --- website/habits/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 website/habits/default.nix (limited to 'website/habits') 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 + ''; +} -- cgit 1.4.1