Merge pull request #215101 from afh/groff-preconv-options

groff: Add enableIconv and enableLibuchardet option
This commit is contained in:
Sandro 2023-03-08 12:56:39 +01:00 committed by GitHub
commit 4754474723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
{ lib, stdenv, fetchurl, fetchpatch, perl
, enableGhostscript ? false, ghostscript # for postscript and html output
, enableHtml ? false, psutils, netpbm # for html output
, enableIconv ? false, iconv
, enableLibuchardet ? false, libuchardet # for detecting input file encoding in preconv(1)
, buildPackages
, autoreconfHook
, pkg-config
@ -57,7 +59,9 @@ stdenv.mkDerivation rec {
++ lib.optional (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "9") bison;
buildInputs = [ perl bash ]
++ lib.optionals enableGhostscript [ ghostscript ]
++ lib.optionals enableHtml [ psutils netpbm ];
++ lib.optionals enableHtml [ psutils netpbm ]
++ lib.optionals enableIconv [ iconv ]
++ lib.optionals enableLibuchardet [ libuchardet ];
# Builds running without a chroot environment may detect the presence
# of /usr/X11 in the host system, leading to an impure build of the