mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
* added haddock documentation tool for ghc/Haskell
svn path=/nixpkgs/trunk/; revision=10229
This commit is contained in:
parent
d223784b0e
commit
92886a3321
25
pkgs/development/tools/documentation/haddock/default.nix
Normal file
25
pkgs/development/tools/documentation/haddock/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
})
|
@ -1478,6 +1478,11 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
haddock = import ../development/tools/documentation/haddock {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
ghc = ghc68;
|
||||||
|
};
|
||||||
|
|
||||||
happy = import ../development/tools/parsing/happy {
|
happy = import ../development/tools/parsing/happy {
|
||||||
inherit fetchurl stdenv perl ghc;
|
inherit fetchurl stdenv perl ghc;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user