nixpkgs-suyu/pkgs/development/compilers/llvm/3.5/dragonegg.nix

27 lines
818 B
Nix
Raw Normal View History

{stdenv, fetch, llvm, gmp, mpfr, libmpc, ncurses, zlib, version}:
2015-02-03 22:58:32 +01:00
stdenv.mkDerivation rec {
name = "dragonegg-${version}";
2015-08-17 12:02:17 +02:00
src = fetch "dragonegg" "1va4wv2b1dj0dpzsksnpnd0jic52q7pqj79w3m9jwdb58h7104dw";
2015-02-03 22:58:32 +01:00
# The gcc the plugin will be built for (the same used building dragonegg)
GCC = "gcc";
2015-02-03 23:26:16 +01:00
buildInputs = [ llvm gmp mpfr libmpc ncurses zlib ];
2015-02-03 22:58:32 +01: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 14:11:05 +02:00
maintainers = with stdenv.lib.maintainers; [viric];
2015-02-03 22:58:32 +01:00
platforms = with stdenv.lib.platforms; linux;
};
}