netbsd.libcurses: fix build

This commit is contained in:
Alyssa Ross 2021-04-30 13:56:27 +00:00
parent cf324a7f11
commit f27de651fd
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

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 \