mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
d64917ad17
* There now is full support for building Haskell packages as shared libraries for GHC versions 7.4.2 or later. The Cabal builder recognizes the following attributes: - enableSharedLibraries configures Cabal to build of shared libraries in addition to static ones. This option requires that all dependencies of the package have been compiled for use in shared libraries, too. - enableSharedExecutables configures Cabal to prefer shared libraries when linking executables. The default values for these attributes are arguments to the haskellPackages expression. * Haskell builds now run in a LANG="en_US.UTF-8" environment to avoid plenty of build and test suite errors. Without this setting, GHC seems unable to deal with the UTF-8 character encoding that's generally considered standard in the Haskell world. * The Cabal builder supports a new attribute 'testTarget' to specify the exact set of tests to be run during the check phase. * The ghc-wrapper attribute ghcVersion has been removed. Instead, we use the ghc.version attribute, which exists in unwrapped GHC derivations, too.
26 lines
831 B
Nix
26 lines
831 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];
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.version} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://www.haskell.org/haddock/";
|
|
description = "A documentation-generation tool for Haskell libraries";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.ghc.meta.platforms;
|
|
maintainers = [
|
|
self.stdenv.lib.maintainers.andres
|
|
];
|
|
};
|
|
})
|