nixpkgs-suyu/pkgs/development/compilers/ghc/6.10.4.nix

30 lines
759 B
Nix
Raw Normal View History

{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
stdenv.mkDerivation rec {
version = "6.10.4";
name = "ghc-${version}";
src = fetchurl {
2015-03-14 13:32:26 +01:00
url = "${meta.homepage}/dist/${version}/${name}-src.tar.bz2";
sha256 = "d66a8e52572f4ff819fe5c4e34c6dd1e84a7763e25c3fadcc222453c0bd8534d";
};
buildInputs = [ghc libedit perl gmp];
2015-03-14 13:32:26 +01:00
configureFlags = [
2015-10-15 17:43:23 +02:00
"--with-gmp-libraries=${gmp.out}/lib"
"--with-gmp-includes=${gmp.dev}/include"
"--with-gcc=${stdenv.cc}/bin/gcc"
];
NIX_CFLAGS_COMPILE = "-fomit-frame-pointer";
meta = {
2015-03-14 13:32:26 +01:00
homepage = "http://haskell.org/ghc";
description = "The Glasgow Haskell Compiler";
platforms = ["x86_64-linux" "i686-linux"]; # Darwin is unsupported.
inherit (ghc.meta) license;
};
}