Yes, this is exactly what I'm trying to do. Prebuilt binaries of MLton for
darwin are available.
The problem is that to bootstrap the compiler you need first to patchelf
these binaries.
On linux this is done with the line I cited:
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2
$(pwd)/../usr/lib/mlton/mlton-compile
So my question is, where I find the linker in nixpkgs on darwin?
I tried to grep the sources but I'm lost.
Thanks,
Marco
2014-04-11 20:08 GMT+02:00 Karn Kallio <[email protected]>:
> Hello,
>
> The current nixpkgs expression for mlton uses the mlton binary provided by
> mlton.org to bootstrap the compiler. I don't think it will work for any
> platform other than Linux. But I think mlton.org also distributes a
> binary
> for some other platforms besides Linux ... if there is one for your
> platform
> maybe you could get the expression to build using it.
>
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev