nixpkgs/pkgs/os-specific
Alyssa Ross 7be5fbf70f
pkgsStatic.netbsd: fix nbtool_config.h conflicts
In pkgsStatic, /all/ build inputs are propagated.  This means that
netbsd.compat was propagated, along with its setup hook, which broke
static glib builds because glib defines a function with the same name
as one in nbtool_config.h, and nbtool_config.h was being automatically
included in every C file processed by the compiler, in any transitive
dependent of netbsd.compat's setup hook.

To fix this, rather than forcing nbtool_config.h to be included for
_every_ C file in a derivation that depends on netbsd.compat, modify
the NetBSD-specific mkDerivation to detect files that need the header,
and patch it in there where appropriate.  That way, only files that
are part of NetBSD will be affected, not all transitive dependents.
2022-01-06 14:20:18 +00:00
..
bsd pkgsStatic.netbsd: fix nbtool_config.h conflicts 2022-01-06 14:20:18 +00:00
darwin Merge remote-tracking branch 'origin/master' into staging-next 2021-12-05 22:02:00 -08:00
linux Export static libc, libm, libdl from the prebuilt crt as well. 2022-01-05 15:16:27 +08:00
solo5 solo5: 0.6.8 -> 0.6.9 2021-12-13 22:00:02 +00:00
windows maintainers: update personal details 2021-12-31 21:48:55 +03:00