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

2015-04-28 Thread Eric Merritt
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 vcu...@gmail.com wrote: On 04/27/2015 10:42 PM, Eric Merritt

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

2015-04-28 Thread Vladimír Čunát
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

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

2015-04-27 Thread Eric Merritt
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/ ''; On Mon, Apr 27, 2015 at 12:37

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

2015-04-27 Thread Vladimír Čunát
On 04/27/2015 09:14 PM, Vincent Laporte wrote: Le 2015-04-27 21:08, Vladimír Čunát a ēcrit : On 04/27/2015 09:03 PM, Eric Merritt wrote: When ocaml build B, then it fails because it can't load the *.so that is part of A. That all seems to boil down to the question: how are those so-files

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

2015-04-27 Thread Eric Merritt
Guys, I am packaging up some ocaml projects and running into a problem. Certain syntax extensions (bin_prot) include a *.so component that isn't getting picked up. So when another package has that package as dependency it doesn't build, because the code from that package gets loaded during build

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

2015-04-27 Thread Vladimír Čunát
On 04/27/2015 09:03 PM, Eric Merritt wrote: When ocaml build B, then it fails because it can't load the *.so that is part of A. That all seems to boil down to the question: how are those so-files searched for? (by the ocaml compiler, I guess, or by what?) Vladimir smime.p7s Description:

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

2015-04-27 Thread Vladimír Čunát
On 04/27/2015 09:03 PM, Eric Merritt wrote: When ocaml build B, then it fails because it can't load the *.so that is part of A. That all seems to boil down to the question: how are those so-files searched for? (by the ocaml compiler, I guess, or by what?) Vladimir smime.p7s Description:

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

2015-04-27 Thread Vincent Laporte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Le 2015-04-27 21:08, Vladimír Čunát a ēcrit : On 04/27/2015 09:03 PM, Eric Merritt wrote: When ocaml build B, then it fails because it can't load the *.so that is part of A. That all seems to boil down to the question: how are those so-files