nixpkgs/pkgs/development/compilers/llvm/dragonegg.nix

31 lines
856 B
Nix
Raw Normal View History

{stdenv, fetchurl, llvm, gmp, mpfr, mpc}:
stdenv.mkDerivation rec {
2013-12-11 12:13:24 +01:00
version = "3.3";
2013-02-23 14:57:31 +01:00
name = "dragonegg-${version}";
src = fetchurl {
2013-02-23 14:57:31 +01:00
url = "http://llvm.org/releases/${version}/${name}.src.tar.gz";
2013-12-11 12:13:24 +01:00
sha256 = "1kfryjaz5hxh3q6m50qjrwnyjb3smg2zyh025lhz9km3x4kshlri";
};
# The gcc the plugin will be built for (the same used building dragonegg)
GCC = "gcc";
buildInputs = [ llvm gmp mpfr mpc ];
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 = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}