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
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:
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:
-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
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
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:
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_versi
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 wrote:
> On 04/27/2015 10:42 PM, Eric Merritt wrote:
> > Thanks a