git.iko.soy/typeable/nix-pills-ru
on master help sign in
Change the way this is built
commit23fce560a43b9599e7d1e8bd0588e423277779ed authorAlexander Bantyev <balsoft@yandex.ru> dateTue 23 Jul 2019, 21:19 (7 years ago) parent70fd8b5
2 files changed+7−9
Makefile+7−2 default.nix−7
Makefile+7−2
@@ -1,5 +1,10 @@
1−build: ; eval $$buildPhase
1+nix.pdf: ; pandoc nix.md -t beamer --slide-level=2 --pdf-engine xelatex -F pandoc-filter-graphviz -o nix.pdf
2+nix.html: ; pandoc nix.md -t slidy -F pandoc-filter-graphviz -o nix.html;
3+speaker-notes.md: ; sed -e "/<!--/,/-->/!d" nix.md | sed -e "s/<!--//" | sed -e "s/-->/\n\* \* \*/" > speaker-notes.md
4+speaker-notes.html: speaker-notes.md; pandoc speaker-notes.md -o speaker-notes.html
25
3−autoreload: ; while inotifywait -qq nix.md; do eval $$buildPhase; done
6+build: nix.pdf nix.html speaker-notes.html
7+
8+autoreload: ; while inotifywait -qq nix.md; do $MAKE build; done
49
510all: build
default.nix−7
@@ -30,11 +30,4 @@ in stdenv.mkDerivation rec {
3030 preferLocalBuild = true;
3131
3232 shellHook = "make build";
33−
34− buildPhase = ''
35− pandoc nix.md -t beamer --slide-level=2 --pdf-engine xelatex -F pandoc-filter-graphviz -o nix.pdf;
36− pandoc nix.md -t slidy -F pandoc-filter-graphviz -o nix.html;
37− sed -e "/<!--/,/-->/!d" nix.md | sed -e "s/<!--//" | sed -e "s/-->/\n\* \* \*/" > speaker-notes.md;
38− pandoc speaker-notes.md -o speaker-notes.html
39− '';
4033}