1{ mkCabalProjectPkgSet, stdenv, lib, testSrc }:
6 pkgSet = mkCabalProjectPkgSet {
7 plan-pkgs = import ./pkgs.nix;
9 # overrides to fix the build
11 packages.transformers-compat.components.library.doExactConfig = true;
15 # Add a hook to the haddock phase
16 packages.test-haddock.postHaddock = ''
18 echo "This is the postHaddock hook. The files are:"
23 # Check that the package option works
24 packages.stm.doHaddock = false;
29 packages = pkgSet.config.hsPkgs;
33 name = "builder-haddock-test";
36 inherit (packages.test-haddock.components) library;
37 noDocLibrary = packages.stm.components.library;
39 ########################################################################
42 doc="${toString library.doc or null}"
43 docDir="${toString library.haddockDir}"
45 # exeDoc="$ disabled {toString packages.test-haddock.components.exes.test-haddock.doc}"
46 # printf "checking that executable output does not have docs ... " >& 2
50 printf "checking that documentation directory was built... " >& 2
54 printf "checking that documentation was generated... " >& 2
55 grep hello "$docDir/TestHaddock.html" > /dev/null
58 printf "checking for hoogle index of package... " >& 2
59 grep hello "$docDir/test-haddock.txt" > /dev/null
62 printf "checking for absence of documentation in another package... " >& 2
63 if [ -d "${toString noDocLibrary.haddockDir}" ]; then
64 echo "it exists - FAIL" >& 2
69 printf "checking for absence of library package store paths in docs... " >& 2
70 if grep -R ${library} "$docDir" > /dev/null; then
71 echo "Found ${library} - FAIL" >& 2
81 platforms = platforms.all;
82 disabled = stdenv.hostPlatform != stdenv.buildPlatform || stdenv.hostPlatform.isMusl;
84} // { inherit packages pkgSet; }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list