So this is the setuphook of the dependee not the compiler. The directory is
there because the package creates it. Is there some subtlety I am missing
in the way nix handles packages?

On Tue, Apr 28, 2015 at 3:14 AM, Vladimír Čunát <[email protected]> wrote:

> On 04/27/2015 10:42 PM, Eric Merritt wrote:
> > Thanks all of you. I added the following to my dependee (bin_prot) and
> > it worked nicely.
> >
> >  setupHook = writeText "setupHook.sh" ''
> >   export
> >
> CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml_version}/site-lib/bin_prot/"
> > '';
>
> Just note that without testing existence of the directories, the
> variable will likely be filled with many paths from other build inputs.
> Having nonexistent directories in there probably won't matter, although
> it doesn't look nice.
>
> Vladimir
>
>
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to