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

Vladimír Čunát vcunat at gmail.com
Tue Apr 28 12:14:07 CEST 2015


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 --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150428/236d008c/attachment.bin 


More information about the nix-dev mailing list