28 lines
605 B
Nix
28 lines
605 B
Nix
|
{stdenv, fetchurl, libedit, ghc, perl, gmp, ncurses}:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
version = "6.10.1";
|
||
|
|
||
|
name = "ghc-${version}";
|
||
|
|
||
|
homepage = "http://haskell.org/ghc";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "${homepage}/dist/${version}/${name}-src.tar.bz2";
|
||
|
sha256 = "16q08cxxsmh4hgjhvkl739pc1hh81gljycfq1d2z6m1ld3jpbi22";
|
||
|
};
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
}
|