texinfo413: fix build on darwin

This commit is contained in:
Weijia Wang
2024-05-29 23:07:36 +02:00
parent 3892ca21ff
commit 704ef039af
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, texinfo, ncurses, xz }:
{ stdenv, fetchurl, texinfo, ncurses, xz, lib }:
stdenv.mkDerivation rec {
pname = "texinfo";
@@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
nativeBuildInputs = [ xz ];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
"-Wno-error=implicit-function-declaration"
]);
# Disabled because we don't have zdiff in the stdenv bootstrap.
#doCheck = true;