2014-07-12 16:17:50 +01:00
|
|
|
{ stdenv, fetchgit, python }:
|
|
|
|
|
|
|
|
let
|
2015-10-31 06:27:15 +00:00
|
|
|
tag = "1.35.4";
|
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-10-31 06:27:15 +00:00
|
|
|
sha256 = "3bd50787d78381f684f9b3f46fc91cc3d1803c3389e19ec41ee59c2deaf727d8";
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srcFL = fetchgit {
|
|
|
|
url = git://github.com/kripken/emscripten-fastcomp-clang;
|
|
|
|
rev = "refs/tags/${tag}";
|
2015-10-31 06:27:15 +00:00
|
|
|
sha256 = "ec0d22c04eec5f84695401e19a52704b28e8d2779b87388f399b5f63b54a9862";
|
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";
|
2015-11-21 12:33:22 +00:00
|
|
|
platforms = platforms.all;
|
2014-07-12 16:17:50 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|