2010-06-12 21:54:35 +01:00
|
|
|
{stdenv, fetchsvn, llvm, gmp, mpfr, mpc}:
|
2010-06-12 18:42:33 +01:00
|
|
|
|
2010-06-12 21:54:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-06-12 18:42:33 +01:00
|
|
|
name = "dragonegg-2.7";
|
|
|
|
|
|
|
|
src = fetchsvn {
|
|
|
|
url = http://llvm.org/svn/llvm-project/dragonegg/branches/release_27;
|
|
|
|
rev = 105882;
|
|
|
|
sha256 = "0j0mj3zm1nd8kaj3b28b3w2dlzc1xbywq4mcdxk5nq4yds6rx5np";
|
|
|
|
};
|
2010-06-12 21:54:35 +01:00
|
|
|
|
|
|
|
# The gcc the plugin will be built for (the same used building dragonegg)
|
|
|
|
GCC = "gcc";
|
|
|
|
|
|
|
|
buildInputs = [ llvm gmp mpfr mpc ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $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";
|
2010-06-12 23:30:09 +01:00
|
|
|
license = "GPLv2+";
|
2010-06-12 21:54:35 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2011-01-05 10:13:28 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2010-06-12 21:54:35 +01:00
|
|
|
};
|
2010-06-12 18:42:33 +01:00
|
|
|
}
|