mandoc: run regression test suite

This commit is contained in:
sternenseemann 2021-09-19 19:53:16 +02:00
parent a0a2b5f788
commit 342cabea95

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, zlib }: { lib, stdenv, fetchurl, zlib, perl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mandoc"; pname = "mandoc";
@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
printf '%s' "$configureLocal" > configure.local printf '%s' "$configureLocal" > configure.local
''; '';
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "regress";
checkInputs = [ perl ];
preCheck = "patchShebangs --build regress/regress.pl";
meta = with lib; { meta = with lib; {
homepage = "https://mandoc.bsd.lv/"; homepage = "https://mandoc.bsd.lv/";
description = "suite of tools compiling mdoc and man"; description = "suite of tools compiling mdoc and man";