From 55a97cef201af8d1c70ecdb34ae0a89e2a1b27fe Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 14 Apr 2025 21:12:31 +0200 Subject: [PATCH] tests.haskell.documentationTarball: switch to random We only need *a* package, to test the "documentationTarball" function, not specifically vector. I guess we should use a package that is rarely broken itself... for which a *dependency* of vector should be a good choice. I took a random one... "random"! --- pkgs/test/haskell/documentationTarball/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/test/haskell/documentationTarball/default.nix b/pkgs/test/haskell/documentationTarball/default.nix index 6c4d2179114f..f67dcb7a8fbc 100644 --- a/pkgs/test/haskell/documentationTarball/default.nix +++ b/pkgs/test/haskell/documentationTarball/default.nix @@ -1,7 +1,7 @@ { pkgs, haskellPackages }: let - drv = haskellPackages.vector; + drv = haskellPackages.random; docs = pkgs.haskell.lib.compose.documentationTarball drv; in @@ -15,10 +15,10 @@ pkgs.runCommand "test haskell.lib.compose.documentationTarball" tar xvzf "${docs}/${drv.name}-docs.tar.gz" # Check for Haddock html - find "${drv.name}-docs" | grep -q "Data-Vector.html" + find "${drv.name}-docs" | grep -q "System-Random.html" # Check for source html - find "${drv.name}-docs" | grep -q "src/Data.Vector.html" + find "${drv.name}-docs" | grep -q "src/System.Random.html" touch "$out" ''