1{ mkCabalProjectPkgSet, stdenv, 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;
38 in if (stdenv.hostPlatform != stdenv.buildPlatform)
40 echo "Skipping haddock tests when cross compiling" >& 2
44 ########################################################################
47 doc="${toString library.doc or null}"
48 docDir="${toString library.haddockDir}"
50 # exeDoc="$ disabled {toString packages.test-haddock.components.exes.test-haddock.doc}"
51 # printf "checking that executable output does not have docs ... " >& 2
55 printf "checking that documentation directory was built... " >& 2
59 printf "checking that documentation was generated... " >& 2
60 grep hello "$docDir/TestHaddock.html" > /dev/null
63 printf "checking for hoogle index of package... " >& 2
64 grep hello "$docDir/test-haddock.txt" > /dev/null
67 printf "checking for absence of documentation in another package... " >& 2
68 if [ -d "${toString noDocLibrary.haddockDir}" ]; then
69 echo "it exists - FAIL" >& 2
74 printf "checking for absence of library package store paths in docs... " >& 2
75 if grep -R ${library} "$docDir" > /dev/null; then
76 echo "Found ${library} - FAIL" >& 2
85 meta.platforms = platforms.all;
86 meta.disabled = stdenv.hostPlatform.isMusl;
87} // { 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