acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / test / haskell / documentationTarball / default.nix
blob337510281012879f830a5daaa046ca99f655e0e0
1 { pkgs, haskellPackages }:
3 let
4   drv = haskellPackages.vector;
5   docs = pkgs.haskell.lib.compose.documentationTarball drv;
7 in pkgs.runCommand "test haskell.lib.compose.documentationTarball" {
8   meta = {
9     inherit (docs.meta) platforms;
10   };
11 } ''
12   tar xvzf "${docs}/${drv.name}-docs.tar.gz"
14   # Check for Haddock html
15   find "${drv.name}-docs" | grep -q "Data-Vector.html"
17   # Check for source html
18   find "${drv.name}-docs" | grep -q  "src/Data.Vector.html"
20   touch "$out"