2014-07-12 16:17:50 +01:00
|
|
|
{ stdenv, fetchgit, python }:
|
|
|
|
|
|
|
|
let
|
2016-05-25 02:53:20 +01:00
|
|
|
tag = "1.36.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}";
|
2016-05-25 02:53:20 +01:00
|
|
|
sha256 = "0qmrc83yrlmlb11gqixxnwychif964054lgdiycz0l10yj0q37j5";
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srcFL = fetchgit {
|
|
|
|
url = git://github.com/kripken/emscripten-fastcomp-clang;
|
|
|
|
rev = "refs/tags/${tag}";
|
2016-05-25 02:53:20 +01:00
|
|
|
sha256 = "1av58y9s24l32hsdgp3jh4fkc5005xbzzjd27in2r9q3p6igd5d4";
|
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;
|
2016-05-25 02:53:20 +01:00
|
|
|
maintainers = with maintainers; [ qknight ];
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.ncsa;
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
}
|