3
0
Fork 0
forked from mirrors/nixpkgs

* added haddock documentation tool for ghc/Haskell

svn path=/nixpkgs/trunk/; revision=10229
This commit is contained in:
Andres Löh 2008-01-19 17:05:54 +00:00
parent d223784b0e
commit 92886a3321
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{stdenv, fetchurl, ghc}:
stdenv.mkDerivation (rec {
pname = "haddock";
version = "2.0.0.0";
name = "${pname}-${version}";
src = fetchurl {
url = "http://hackage.haskell.org/packages/archive/${pname}/${version}/${name}.tar.gz";
sha256 = "a2ea5bdc127bc8b189a8d869f582ec774fea0933e7f5ca89549a6c142b9993df";
};
buildInputs = [ghc];
configurePhase = ''
ghc --make Setup.lhs
./Setup configure -v --prefix="$out"
'';
buildPhase = ''
./Setup build
'';
installPhase = ''
./Setup install
'';
})

View file

@ -1478,6 +1478,11 @@ rec {
inherit fetchurl stdenv;
};
haddock = import ../development/tools/documentation/haddock {
inherit fetchurl stdenv;
ghc = ghc68;
};
happy = import ../development/tools/parsing/happy {
inherit fetchurl stdenv perl ghc;
};