ad07109bba
svn path=/nixpkgs/trunk/; revision=15106
29 lines
654 B
Nix
29 lines
654 B
Nix
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.10.2";
|
|
|
|
name = "ghc-${version}";
|
|
|
|
homepage = "http://haskell.org/ghc";
|
|
|
|
src = fetchurl {
|
|
url = "${homepage}/dist/${version}/${name}-src.tar.bz2";
|
|
sha256 = "0q3wgp8svfl54kpyp55a1kh63cni5vzz811hqjsps84jdg0lg56m";
|
|
};
|
|
|
|
buildInputs = [ghc libedit perl gmp];
|
|
|
|
configureFlags=[
|
|
"--with-gmp-libraries=${gmp}/lib"
|
|
"--with-gmp-includes=${gmp}/include"
|
|
#"--with-readline-libraries=${readline}/lib"
|
|
"--with-gcc=${stdenv.gcc}/bin/gcc"
|
|
];
|
|
|
|
meta = {
|
|
inherit homepage;
|
|
description = "The Glasgow Haskell Compiler";
|
|
};
|
|
}
|