510ba8c3d9
GitOrigin-RevId: 069f183f16c3ea5d4b6e7625433b92eba77534f7
17 lines
417 B
Nix
17 lines
417 B
Nix
{ pkgs, haskellPackages }:
|
|
|
|
let
|
|
drv = haskellPackages.vector;
|
|
docs = pkgs.haskell.lib.documentationTarball drv;
|
|
|
|
in pkgs.runCommand "test haskell.lib.documentationTarball" { } ''
|
|
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"
|
|
''
|