2020-11-07 10:50:17 +01:00
|
|
|
{ pkgs, haskellPackages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
drv = haskellPackages.vector;
|
2021-10-26 12:20:34 +02:00
|
|
|
docs = pkgs.haskell.lib.compose.documentationTarball drv;
|
2020-11-07 10:50:17 +01:00
|
|
|
|
2021-10-26 12:20:34 +02:00
|
|
|
in pkgs.runCommand "test haskell.lib.compose.documentationTarball" {
|
2021-07-13 15:37:22 +02:00
|
|
|
meta = {
|
|
|
|
inherit (docs.meta) platforms;
|
|
|
|
};
|
|
|
|
} ''
|
2020-11-07 10:50:17 +01: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"
|
|
|
|
''
|