diff options
-rw-r--r-- | default.pdf.do | 7 | ||||
-rw-r--r-- | shell.nix | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/default.pdf.do b/default.pdf.do new file mode 100644 index 0000000..d6b4ac4 --- /dev/null +++ b/default.pdf.do | |||
@@ -0,0 +1,7 @@ | |||
1 | redo-ifchange $2.md | ||
2 | |||
3 | tmp=$(mktemp --suffix=.pdf) | ||
4 | |||
5 | pandoc -t latex -o $tmp -V "geometry=margin=2cm" -V "fontfamily=libertine" $2.md >&2 | ||
6 | |||
7 | cat $tmp | ||
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..59a4ea7 --- /dev/null +++ b/shell.nix | |||
@@ -0,0 +1,7 @@ | |||
1 | { pkgs ? (import <nixpkgs> {}) | ||
2 | }: | ||
3 | |||
4 | pkgs.stdenv.mkDerivation { | ||
5 | name = "uni-env"; | ||
6 | buildInputs = [ pkgs.haskellPackages.pandoc ]; | ||
7 | } | ||