Skip to content

Commit a365c82

Browse files
Target for generating PDF.
1 parent ed507e6 commit a365c82

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

default.nix

+16
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ let hp = nixpkgs.haskell.packages.${ghc};
4242
ccomp-platform = "x86_64-linux";
4343
};
4444

45+
pdf = nixpkgs.runCommand "Simplicity-TR" {} ''
46+
export TEXMACS_HOME_PATH=$NIX_BUILD_TOP
47+
mkdir -p $out/share/
48+
49+
cp ${./Simplicity-TR.tm} Simplicity-TR.tm
50+
cp ${./Simplicity.bib} Simplicity.bib
51+
52+
mkdir -p $TEXMACS_HOME_PATH/progs
53+
cat <<EOF > $TEXMACS_HOME_PATH/progs/my-init-buffer.scm
54+
; inspired by http://savannah.gnu.org/bugs/?32944
55+
(generate-all-aux) (print-to-file "Simplicity-TR.pdf") (style-clear-cache)
56+
EOF
57+
58+
${nixpkgs.xvfb-run}/bin/xvfb-run ${nixpkgs.texmacs}/bin/texmacs -c Simplicity-TR.tm $out/share/Simplicity-TR.pdf -q
59+
'';
60+
4561
vst = nixpkgs.callPackage ./vst.nix {
4662
inherit (cp) coq;
4763
inherit compcert;

0 commit comments

Comments
 (0)