2014-07-12 16:17:50 +01:00
|
|
|
{ stdenv, fetchgit, python }:
|
|
|
|
|
|
|
|
let
|
2015-01-18 10:17:49 +00:00
|
|
|
tag = "1.29.3";
|
2014-07-12 16:17:50 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emscripten-fastcomp-${tag}";
|
|
|
|
|
|
|
|
srcFC = fetchgit {
|
|
|
|
url = git://github.com/kripken/emscripten-fastcomp;
|
|
|
|
rev = "refs/tags/${tag}";
|
2015-01-18 10:17:49 +00:00
|
|
|
sha256 = "ab44554dc43eee5552ea04c134a5aaff2cd32f6f6528f58a24025bcd8fd1d46e";
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srcFL = fetchgit {
|
|
|
|
url = git://github.com/kripken/emscripten-fastcomp-clang;
|
|
|
|
rev = "refs/tags/${tag}";
|
2015-01-18 10:17:49 +00:00
|
|
|
sha256 = "cc6dd704f5eba64fda931833479003bf3c8d9cf781bbaac3aa22a7b2644ccb26";
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.ncsa;
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
}
|