mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
22 lines
484 B
Nix
22 lines
484 B
Nix
{ pkgs, haskellPackages }:
|
|
|
|
let
|
|
drv = haskellPackages.vector;
|
|
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 "Data-Vector.html"
|
|
|
|
# Check for source html
|
|
find "${drv.name}-docs" | grep -q "src/Data.Vector.html"
|
|
|
|
touch "$out"
|
|
''
|