2016-05-27 01:05:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python }:
|
2014-07-12 16:17:50 +01:00
|
|
|
|
|
|
|
let
|
2016-05-27 01:05:07 +01:00
|
|
|
rev = "1.36.4";
|
2014-07-12 16:17:50 +01:00
|
|
|
in
|
|
|
|
|
2016-05-27 01:05:07 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "emscripten-fastcomp-${rev}";
|
2014-07-12 16:17:50 +01:00
|
|
|
|
2016-05-27 01:05:07 +01:00
|
|
|
srcFC = fetchFromGitHub {
|
|
|
|
owner = "kripken";
|
|
|
|
repo = "emscripten-fastcomp";
|
|
|
|
sha256 = "0838rl0n9hyq5dd0gmj5rvigbmk5mhrhzyjk0zd8mjs2mk8z510l";
|
|
|
|
inherit rev;
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
|
2016-05-27 01:05:07 +01:00
|
|
|
srcFL = fetchFromGitHub {
|
|
|
|
owner = "kripken";
|
|
|
|
repo = "emscripten-fastcomp-clang";
|
|
|
|
sha256 = "169hfabamv3jmf88flhl4scwaxdh24196gwpz3sdb26lzcns519q";
|
|
|
|
inherit rev;
|
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
|
|
|
|
'';
|
2016-05-27 01:05:13 +01:00
|
|
|
|
2014-07-12 16:17:50 +01:00
|
|
|
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-27 01:05:13 +01:00
|
|
|
maintainers = with maintainers; [ qknight matthewbauer ];
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.ncsa;
|
2014-07-12 16:17:50 +01:00
|
|
|
};
|
|
|
|
}
|