diff --git a/pkgs/misc/tex/nix/dot2pdf.sh b/pkgs/misc/tex/nix/dot2pdf.sh index 76cfbb49d28..65799a42134 100644 --- a/pkgs/misc/tex/nix/dot2pdf.sh +++ b/pkgs/misc/tex/nix/dot2pdf.sh @@ -7,7 +7,7 @@ dot2pdf() { targetName=$out/$(basename $(stripHash $sourceFile; echo $strippedName) .dot).pdf echo "converting $sourceFile to $targetName..." dot -Tps $sourceFile > tmp.ps - epstopdf --outfile $targetName tmp.ps + perl $(type -tp epstopdf) --outfile $targetName tmp.ps } for i in $dotGraph; do