mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
8c6bef0bb0
svn path=/nixpkgs/trunk/; revision=16430
28 lines
617 B
Nix
28 lines
617 B
Nix
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.10.4";
|
|
|
|
name = "ghc-${version}";
|
|
|
|
homepage = "http://haskell.org/ghc";
|
|
|
|
src = fetchurl {
|
|
url = "${homepage}/dist/${version}/${name}-src.tar.bz2";
|
|
sha256 = "d66a8e52572f4ff819fe5c4e34c6dd1e84a7763e25c3fadcc222453c0bd8534d";
|
|
};
|
|
|
|
buildInputs = [ghc libedit perl gmp];
|
|
|
|
configureFlags=[
|
|
"--with-gmp-libraries=${gmp}/lib"
|
|
"--with-gmp-includes=${gmp}/include"
|
|
"--with-gcc=${stdenv.gcc}/bin/gcc"
|
|
];
|
|
|
|
meta = {
|
|
inherit homepage;
|
|
description = "The Glasgow Haskell Compiler";
|
|
};
|
|
}
|