From f8a472971bd600ad23d8846b1105e275268a3d8b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 30 Dec 2018 07:55:39 -0200 Subject: Generate pastebin HTML with pandoc. Instead of generating the HTML manually inside Emacs (=, e e h h=) and than commiting the file to the repo, we now use a more generic approach with pandoc, not tied to any Elisp configuration. --- default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index d49da29..6c8a56c 100644 --- a/default.nix +++ b/default.nix @@ -24,10 +24,13 @@ in with pkgs; with pkgs.stdenv; rec { name = "website"; src = ./site; phases = "unpackPhase buildPhase"; - buildInputs = [ websiteBuilder ]; + buildInputs = [ websiteBuilder pandoc ]; buildPhase = '' export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive"; export LANG=en_US.UTF-8 + + ls pastebin/*.org | awk -F. '{print $1}' | xargs -I{} pandoc -o {}.html {}.org --standalone + build-site build mkdir $out -- cgit v1.2.3