texinfo: enable strictDeps and use libintl instead of gettext optional
libintl is null on linux and gettext on darwin
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ version, sha256, patches ? [] }:
|
||||
|
||||
{ lib, stdenv, buildPackages, fetchurl, perl, xz, gettext
|
||||
{ lib, stdenv, buildPackages, fetchurl, perl, xz, libintl, bash
|
||||
|
||||
# we are a dependency of gcc, this simplifies bootstraping
|
||||
, interactive ? false, ncurses, procps
|
||||
@@ -33,13 +33,13 @@ stdenv.mkDerivation {
|
||||
NATIVE_TOOLS_CFLAGS = if crossBuildTools then "-I${getDev buildPackages.ncurses}/include" else null;
|
||||
NATIVE_TOOLS_LDFLAGS = if crossBuildTools then "-L${getLib buildPackages.ncurses}/lib" else null;
|
||||
|
||||
strictDeps = true;
|
||||
# We need a native compiler to build perl XS extensions
|
||||
# when cross-compiling.
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc perl ];
|
||||
|
||||
buildInputs = [ xz.bin ]
|
||||
buildInputs = [ xz.bin bash libintl ]
|
||||
++ optionals stdenv.isSunOS [ libiconv gawk ]
|
||||
++ optionals stdenv.isDarwin [ gettext ]
|
||||
++ optional interactive ncurses;
|
||||
|
||||
configureFlags = [ "PERL=${buildPackages.perl}/bin/perl" ]
|
||||
|
||||
Reference in New Issue
Block a user