2020-11-15 13:44:38 +00:00
|
|
|
{ pkgs, haskellPackages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
drv = haskellPackages.vector;
|
2021-12-06 16:07:01 +00:00
|
|
|
docs = pkgs.haskell.lib.compose.documentationTarball drv;
|
2020-11-15 13:44:38 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
in pkgs.runCommand "test haskell.lib.compose.documentationTarball" {
|
2021-07-17 21:14:59 +00:00
|
|
|
meta = {
|
|
|
|
inherit (docs.meta) platforms;
|
|
|
|
};
|
|
|
|
} ''
|
2020-11-15 13:44:38 +00:00
|
|
|
tar xvzf "${docs}/${drv.name}-docs.tar.gz"
|
|
|
|
|
|
|
|
# Check for Haddock html
|
|
|
|
find "${drv.name}-docs" | grep -q "Data-Vector.html"
|
|
|
|
|
|
|
|
# Check for source html
|
|
|
|
find "${drv.name}-docs" | grep -q "src/Data.Vector.html"
|
|
|
|
|
|
|
|
touch "$out"
|
|
|
|
''
|