Merge pull request #277117 from trofi/netbsd.libcurses-fix-eval

netbsd.libcurses: fix eval around NIX_CFLAGS_COMPILE
This commit is contained in:
Nick Cao 2023-12-27 11:12:46 -05:00 committed by GitHub
commit 41f6b89814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -766,11 +766,11 @@ in makeScopeWithSplicing' {
version = "9.2";
sha256 = "0pd0dggl3w4bv5i5h0s1wrc8hr66n4hkv3zlklarwfdhc692fqal";
buildInputs = with self; [ libterminfo ];
env.NIX_CFLAGS_COMPILE = toString [
env.NIX_CFLAGS_COMPILE = toString ([
"-D__scanflike(a,b)="
"-D__va_list=va_list"
"-D__warn_references(a,b)="
] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=";
] ++ lib.optional stdenv.isDarwin "-D__strong_alias(a,b)=");
propagatedBuildInputs = with self; compatIfNeeded;
MKDOC = "no"; # missing vfontedpr
makeFlags = defaultMakeFlags ++ [ "LIBDO.terminfo=${self.libterminfo}/lib" ];