diff options
author | Boris Sukholitko <boriss@gmail.com> | 2014-07-12 18:17:50 +0300 |
---|---|---|
committer | Boris Sukholitko <boriss@gmail.com> | 2014-07-12 18:17:50 +0300 |
commit | 10981178a966f0d8bfc77a680921d85e5497e453 (patch) | |
tree | 306073e29bc0ab2fe86911c6c71b8f0b90368242 /pkgs/development/compilers/emscripten-fastcomp | |
parent | 7e2012487584831e467019d99a111bfe0e78916a (diff) | |
download | nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar.gz nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar.bz2 nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar.lz nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar.xz nixlib-10981178a966f0d8bfc77a680921d85e5497e453.tar.zst nixlib-10981178a966f0d8bfc77a680921d85e5497e453.zip |
Add emscripten: LLVM to JavaScript compiler
Diffstat (limited to 'pkgs/development/compilers/emscripten-fastcomp')
-rw-r--r-- | pkgs/development/compilers/emscripten-fastcomp/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/compilers/emscripten-fastcomp/default.nix b/pkgs/development/compilers/emscripten-fastcomp/default.nix new file mode 100644 index 000000000000..3eb9aef528c0 --- /dev/null +++ b/pkgs/development/compilers/emscripten-fastcomp/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchgit, python }: + +let + tag = "1.21.0"; +in + +stdenv.mkDerivation rec { + name = "emscripten-fastcomp-${tag}"; + + srcFC = fetchgit { + url = git://github.com/kripken/emscripten-fastcomp; + rev = "refs/tags/${tag}"; + sha256 = "0mcxzg2cfg0s1vfm3bh1ar4xsddb6xkv1dsdbgnpx38lbj1mvfs1"; + }; + + srcFL = fetchgit { + url = git://github.com/kripken/emscripten-fastcomp-clang; + rev = "refs/tags/${tag}"; + sha256 = "0s2jcn36d236cfpryjpgaazjp3cg83d0h78g6kk1j6vdppv3vgnp"; + }; + + buildInputs = [ python ]; + buildCommand = '' + cp -as ${srcFC} $TMPDIR/src + chmod +w $TMPDIR/src/tools + cp -as ${srcFL} $TMPDIR/src/tools/clang + + chmod +w $TMPDIR/src + mkdir $TMPDIR/src/build + cd $TMPDIR/src/build + + ../configure --enable-optimized --disable-assertions --enable-targets=host,js + make + cp -a Release/bin $out + ''; + meta = with stdenv.lib; { + homepage = https://github.com/kripken/emscripten-fastcomp; + description = "emscripten llvm"; + maintainers = with maintainers; [ bosu ]; + license = "University of Illinois/NCSA Open Source License"; + }; +} |