diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 8c1f058317ac..b51a835d6103 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -100,6 +100,16 @@ stdenv.mkDerivation (finalAttrs: { versionCheckProgram = "${placeholder "bin"}/bin/fc-list"; versionCheckProgramArg = "--version"; + installCheckPhase = '' + runHook preInstallCheck + + [ -d "$bin/share/man/man1" ] + [ -d "$bin/share/man/man5" ] + echo "man pages exist" + + runHook postInstallCheck + ''; + passthru = { tests = { pkg-config = testers.hasPkgConfigModules {