2016-05-27 02:05:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, python }:
|
2014-07-12 17:17:50 +02:00
|
|
|
|
|
|
|
let
|
2016-05-27 02:05:07 +02:00
|
|
|
rev = "1.36.4";
|
2014-07-12 17:17:50 +02:00
|
|
|
in
|
|
|
|
|
2016-05-27 15:49:17 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-05-27 02:05:07 +02:00
|
|
|
name = "emscripten-fastcomp-${rev}";
|
2014-07-12 17:17:50 +02:00
|
|
|
|
2016-05-27 02:05:07 +02:00
|
|
|
srcFC = fetchFromGitHub {
|
|
|
|
owner = "kripken";
|
|
|
|
repo = "emscripten-fastcomp";
|
|
|
|
sha256 = "0838rl0n9hyq5dd0gmj5rvigbmk5mhrhzyjk0zd8mjs2mk8z510l";
|
|
|
|
inherit rev;
|
2014-07-12 17:17:50 +02:00
|
|
|
};
|
|
|
|
|
2016-05-27 02:05:07 +02:00
|
|
|
srcFL = fetchFromGitHub {
|
|
|
|
owner = "kripken";
|
|
|
|
repo = "emscripten-fastcomp-clang";
|
|
|
|
sha256 = "169hfabamv3jmf88flhl4scwaxdh24196gwpz3sdb26lzcns519q";
|
|
|
|
inherit rev;
|
2014-07-12 17:17:50 +02: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 02:05:13 +02:00
|
|
|
|
2014-07-12 17:17:50 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/kripken/emscripten-fastcomp;
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Emscripten llvm";
|
2015-11-21 13:33:22 +01:00
|
|
|
platforms = platforms.all;
|
2016-05-27 15:44:29 +02:00
|
|
|
maintainers = with maintainers; [ qknight matthewbauer ];
|
2014-11-06 01:44:33 +01:00
|
|
|
license = stdenv.lib.licenses.ncsa;
|
2014-07-12 17:17:50 +02:00
|
|
|
};
|
|
|
|
}
|