[Nix-dev] Loading a shared object into the compiler at build time fails

Eric Merritt ericbmerritt at gmail.com
Tue Apr 28 16:48:53 CEST 2015


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 <vcunat at gmail.com> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150428/43c5cfee/attachment.html 


More information about the nix-dev mailing list