netbsd.compat: Fix cross-compilation from darwin (#435590)

Changed files
+4
pkgs
os-specific
bsd
netbsd
pkgs
compat
+4
pkgs/os-specific/bsd/netbsd/pkgs/compat/package.nix
···
preConfigure = ''
make include/.stamp configure nbtool_config.h.in defs.mk.in
+
''
+
+ lib.optionalString stdenv.buildPlatform.isDarwin ''
+
# Fix cross-compilation from darwin, remove after update to netbsd 10.0
+
substituteInPlace Makefile --replace-warn "-no-cpp-precomp" ""
'';
configurePlatforms = [