Merge pull request #121277 from alyssais/netbsd-libcurses

netbsd.libcurses: fix build
This commit is contained in:
John Ericson 2021-04-30 22:31:34 -04:00 committed by GitHub
commit 5de0e93838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -621,6 +621,7 @@ in lib.makeScopeWithSplicing
] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=";
propagatedBuildInputs = with self; compatIfNeeded;
MKDOC = "no"; # missing vfontedpr
makeFlags = [ "LIBDO.terminfo=${self.libterminfo}/lib" ];
postPatch = lib.optionalString (!stdenv.isDarwin) ''
substituteInPlace printw.c \
--replace "funopen(win, NULL, __winwrite, NULL, NULL)" NULL \