about summary refs log tree commit diff
path: root/pkgs/tools/misc/mandoc
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2021-09-24 20:54:08 +0200
committersterni <sternenseemann@systemli.org>2021-12-31 11:17:34 +0100
commitd110798747127ca587c114a6cb802915631f0a11 (patch)
treeedd188c0c88403a071fe3a54dcc76b4468689b7e /pkgs/tools/misc/mandoc
parentf4f723886002f3959d8ef94f556aaaf9c261cc9e (diff)
nixos/tests/man: test common functionality of both man impls
Diffstat (limited to 'pkgs/tools/misc/mandoc')
-rw-r--r--pkgs/tools/misc/mandoc/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/misc/mandoc/default.nix b/pkgs/tools/misc/mandoc/default.nix
index 1771f6515bc41..2d974b8af63dd 100644
--- a/pkgs/tools/misc/mandoc/default.nix
+++ b/pkgs/tools/misc/mandoc/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, zlib, perl }:
+{ lib, stdenv, fetchurl, zlib, perl, nixosTests }:
 
 let
   # check if we can execute binaries for the host platform on the build platform
@@ -62,6 +62,10 @@ stdenv.mkDerivation rec {
   checkInputs = [ perl ];
   preCheck = "patchShebangs --build regress/regress.pl";
 
+  passthru.tests = {
+    nixos = nixosTests.man;
+  };
+
   meta = with lib; {
     homepage = "https://mandoc.bsd.lv/";
     description = "suite of tools compiling mdoc and man";