55a97cef20
We only need *a* package, to test the "documentationTarball" function, not specifically vector. I guess we should use a package that is rarely broken itself... for which a *dependency* of vector should be a good choice. I took a random one... "random"!
25 lines
514 B
Nix
25 lines
514 B
Nix
{ pkgs, haskellPackages }:
|
|
|
|
let
|
|
drv = haskellPackages.random;
|
|
docs = pkgs.haskell.lib.compose.documentationTarball drv;
|
|
|
|
in
|
|
pkgs.runCommand "test haskell.lib.compose.documentationTarball"
|
|
{
|
|
meta = {
|
|
inherit (docs.meta) platforms;
|
|
};
|
|
}
|
|
''
|
|
tar xvzf "${docs}/${drv.name}-docs.tar.gz"
|
|
|
|
# Check for Haddock html
|
|
find "${drv.name}-docs" | grep -q "System-Random.html"
|
|
|
|
# Check for source html
|
|
find "${drv.name}-docs" | grep -q "src/System.Random.html"
|
|
|
|
touch "$out"
|
|
''
|