[Nix-dev] pathExists

James Cook james.cook at utoronto.ca
Mon Feb 25 05:35:37 CET 2013


On 23 February 2013 07:38, Marco Maggesi <maggesi at math.unifi.it> wrote:
> Hello,
>
> I'm trying to create a pdf as follows
>
> let
>   pkgs = import <nixpkgs> {};
> in
> pkgs.texFunctions.runLaTeX {
>  rootFile = ./strengthened.tex;
> }
>
> And I get the following error:
>
> ...
> while evaluating the function at
> `/Users/maggesi/Devel/nixpkgs/pkgs/tools/typesetting/tex/nix/default.nix:68:40':
> while evaluating the builtin function `pathExists':
> string `/nix/store/6x6mcjdj07kwxnhwmcy62slih3pdvkv8-HOAT/article.cls'
> cannot refer to other paths
>
> What does it mean "cannot refer to other paths" in this case?
>
> Thanks?
> Marco

Cool, I didn't know about that function!

This successfully creates a pdf on my system, with nixpkgs 7783c27...
and nix 1.3.  Which versions are you using?  Does it work when you
compile a very simple .tex file with no \usepackage commands?

I also don't understand the error message.

James


More information about the nix-dev mailing list