texinfo: Depend on gettext on Darwin

texinfo version 6.7 requires libintl.h which on Linux is provided
by the libc. On Darwin, this lib is provided by gettext instead.
This commit is contained in:
Christian Kampka 2020-09-06 15:57:52 +02:00 committed by Frederik Rietdijk
parent 7902256cfd
commit e389e24efc

View File

@ -1,6 +1,6 @@
{ version, sha256 }:
{ stdenv, buildPackages, fetchurl, perl, xz
{ stdenv, buildPackages, fetchurl, perl, xz, gettext
# we are a dependency of gcc, this simplifies bootstraping
, interactive ? false, ncurses, procps
@ -39,6 +39,7 @@ stdenv.mkDerivation {
buildInputs = [ xz.bin ]
++ optionals stdenv.isSunOS [ libiconv gawk ]
++ optionals stdenv.isDarwin [ gettext ]
++ optional interactive ncurses;
configureFlags = [ "PERL=${buildPackages.perl}/bin/perl" ]