mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
3e0ac9b040
Several changes, some highlights: * Structure of haskell-packages.nix updated. It's now easier to select different default versions of packages for different versions of GHC. * GHC 7.0.2 is now default. * Haskell Platform 2011.2.0.0 has been added and is now default. * Several packages have been updated (gtk2hs, gitit, xmonad, darcs, ...). * Some old packages have been removed. svn path=/nixpkgs/trunk/; revision=26288
19 lines
642 B
Nix
19 lines
642 B
Nix
{cabal, ghcPaths, xhtml, alex, happy, makeWrapper}:
|
|
|
|
cabal.mkDerivation (self : {
|
|
pname = "haddock";
|
|
version = "2.9.2"; # Haskell Platform 2011.2.0.0
|
|
name = self.fname;
|
|
sha256 = "189vvp173pqc69zgzqqx6vyhvsc13p1s86ql60rs1j5qlhh8ajg8";
|
|
extraBuildInputs = [alex happy makeWrapper];
|
|
propagatedBuildInputs = [ghcPaths xhtml];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
'';
|
|
|
|
meta = {
|
|
description = "a tool for automatically generating documentation from annotated Haskell source code";
|
|
};
|
|
})
|