3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/llvm/3.5/dragonegg.nix

27 lines
830 B
Nix
Raw Normal View History

2015-02-03 22:26:16 +00:00
{stdenv, fetch, fetchpatch, llvm, gmp, mpfr, libmpc, ncurses, zlib, version}:
2015-02-03 21:58:32 +00:00
stdenv.mkDerivation rec {
name = "dragonegg-${version}";
2015-02-20 13:51:24 +00:00
src = fetch "dragonegg" "1v1lc9h2nfk3lsk9sx1k4ckwddz813hqjmlp2bx2kwxx9hw364ar";
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 13:11:05 +01:00
maintainers = with stdenv.lib.maintainers; [viric];
2015-02-03 21:58:32 +00:00
platforms = with stdenv.lib.platforms; linux;
};
}