2018-07-21 00:44:44 +00:00
|
|
|
{stdenv, fetch, llvm, gmp, mpfr, libmpc, ncurses, zlib, version}:
|
2015-02-03 21:58:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dragonegg-${version}";
|
|
|
|
|
2015-08-17 10:02:17 +00:00
|
|
|
src = fetch "dragonegg" "1va4wv2b1dj0dpzsksnpnd0jic52q7pqj79w3m9jwdb58h7104dw";
|
2015-02-03 21:58:32 +00:00
|
|
|
|
|
|
|
# The gcc the plugin will be built for (the same used building dragonegg)
|
|
|
|
GCC = "gcc";
|
|
|
|
|
2015-02-03 22:26:16 +00:00
|
|
|
buildInputs = [ llvm gmp mpfr libmpc ncurses zlib ];
|
2015-02-03 21:58:32 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/share/doc/${name}
|
|
|
|
cp -d dragonegg.so $out/lib
|
|
|
|
cp README COPYING $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://dragonegg.llvm.org/;
|
|
|
|
description = "gcc plugin that replaces gcc's optimizers and code generators by those in LLVM";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-07-01 12:11:05 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2015-02-03 21:58:32 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|