[Nix-dev] emscripten toolchain on nixos

zimbatm zimbatm at zimbatm.com
Wed Jun 15 11:05:20 CEST 2016


That's really cool! Hosting the repl on nixos.org would probably help with
adoption.

On Mon, 13 Jun 2016 at 11:38 Joachim Schiele <js at lastlog.de> wrote:

> hey,
>
> paul & me, authors of nixcloud.io/tour, lately were doing a project for
> nl-net. one outcome was a nice 'hack' in order to get emscripten to work
> on nixos.
>
> the details are here:
> https://github.com/NixOS/nixpkgs/issues/15636
>
> this kind of gives us finaly the opportunity to create a emscripten
> based toolchain abstraction as we have it for c/c++/perl/python/...
> already.
>
> there is some example code how to use nix-shell to hack on projects
> using a simple Makefile featuring two environments:
> - nativeEnv
> - emEnv
>
> both environments are basically using the same code-base but one
> compiles native code, so when you are on x86 you can directly execute
> the c-program there. the emEnv will also use the c-program but compile
> it into javascript which only can be executed by a browser (or nodejs).
>
> interestingly this already works for jscon-c, xml.js and libz used as
> buildInputs. just see
> https://github.com/NixOS/nixpkgs/issues/15636#issuecomment-222681446
>
> the logical next step will be a emscripten based toolchain. who is in?
> please contact us.
>
> if anyone reading this also attends tuebix,
> http://www.tuebix.org/2016/programm_raumplan/ , we could arrange some
> hacking in the evening.
>
> regards,
> joachim
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160615/38f43977/attachment.html>


More information about the nix-dev mailing list