2012-03-17 16:25:00 +01:00
|
|
|
{stdenv, fetchurl, llvm, gmp, mpfr, mpc}:
|
2010-06-12 19:42:33 +02:00
|
|
|
|
2010-06-12 22:54:35 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-02-23 14:57:31 +01:00
|
|
|
version = "3.2";
|
|
|
|
name = "dragonegg-${version}";
|
2010-06-12 19:42:33 +02:00
|
|
|
|
2012-03-17 16:25:00 +01:00
|
|
|
src = fetchurl {
|
2013-02-23 14:57:31 +01:00
|
|
|
url = "http://llvm.org/releases/${version}/${name}.src.tar.gz";
|
|
|
|
sha256 = "0jfxhqy3177drlvzgp6m0kwnbfyzrd4vzidnxjhck8a7a69a26bg";
|
2010-06-12 19:42:33 +02:00
|
|
|
};
|
2010-06-12 22:54:35 +02:00
|
|
|
|
|
|
|
# The gcc the plugin will be built for (the same used building dragonegg)
|
|
|
|
GCC = "gcc";
|
|
|
|
|
|
|
|
buildInputs = [ llvm gmp mpfr mpc ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib $out/share/doc/${name}
|
2010-06-12 22:54:35 +02:00
|
|
|
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-13 00:30:09 +02:00
|
|
|
license = "GPLv2+";
|
2010-06-12 22:54:35 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2011-01-05 11:13:28 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2010-06-12 22:54:35 +02:00
|
|
|
};
|
2010-06-12 19:42:33 +02:00
|
|
|
}
|