Manual for Pijul
{ pkgs?(import <nixpkgs> {}), rust?(pkgs.rust), ... }:
pkgs.stdenv.mkDerivation {
name = "pijul-manual";
src = ./.;
buildInputs = [ pkgs.mdbook pkgs.pdf2svg ];
buildPhase = ''
cd src
pdflatex -shell-escape figures
rm figures *.dpth *.log *.md5
for file in $(ls *.pdf); do
pdf2svg $file $(basename $file .pdf).svg
done
cd ..
mdbook build
'';
installPhase = ''
mkdir $out
cp -R book/* $out #*/
'';
}