pkgs/development/libraries/haskell/cabal/cabal.nix: build haddock documentation for Haskell libraries
svn path=/nixpkgs/trunk/; revision=19237
This commit is contained in:
parent
3535899507
commit
1dfec1c467
@ -13,10 +13,10 @@ attrs :
|
|||||||
# fname is the internal full name of the package
|
# fname is the internal full name of the package
|
||||||
fname = "${self.pname}-${self.version}";
|
fname = "${self.pname}-${self.version}";
|
||||||
|
|
||||||
# name is the external full name of the package; usually we prefix
|
# name is the external full name of the package; usually we prefix
|
||||||
# all packages with haskell- to avoid name clashes for libraries;
|
# all packages with haskell- to avoid name clashes for libraries;
|
||||||
# if that is not desired (for applications), name can be set to
|
# if that is not desired (for applications), name can be set to
|
||||||
# fname.
|
# fname.
|
||||||
name = "haskell-${self.pname}-ghc${attrs.ghc.ghc.version}-${self.version}";
|
name = "haskell-${self.pname}-ghc${attrs.ghc.ghc.version}-${self.version}";
|
||||||
|
|
||||||
# the default download location for Cabal packages is Hackage,
|
# the default download location for Cabal packages is Hackage,
|
||||||
@ -66,12 +66,15 @@ attrs :
|
|||||||
|
|
||||||
./Setup build
|
./Setup build
|
||||||
|
|
||||||
|
export GHC_PACKAGE_PATH=$(ghc-packages)
|
||||||
|
./Setup haddock
|
||||||
|
|
||||||
eval "$postBuild"
|
eval "$postBuild"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# installs via Cabal; creates a registration file for nix-support
|
# installs via Cabal; creates a registration file for nix-support
|
||||||
# so that the package can be used in other Haskell-builds; also
|
# so that the package can be used in other Haskell-builds; also
|
||||||
# adds all propagated build inputs to the user environment packages
|
# adds all propagated build inputs to the user environment packages
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
eval "$preInstall"
|
eval "$preInstall"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user