about summary refs log tree commit diff
path: root/pkgs/os-specific/bsd/netbsd/pkgs/i18n_module.nix
blob: 9504ac22a74edfbe3a28bc051d561243a9ec8e7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  stdenvLibcMinimal,
  mkDerivation,
  libcMinimal,
}:

mkDerivation {
  path = "lib/i18n_module";

  libcMinimal = true;

  # Hack around GCC's limits.h missing the include_next we want See
  # https://gcc.gnu.org/legacy-ml/gcc/2003-10/msg01278.html
  NIX_CFLAGS_COMPILE_BEFORE = "-isystem ${stdenvLibcMinimal.cc.libc.dev}/include";

  extraPaths = [ libcMinimal.path ];

  meta.platforms = lib.platforms.netbsd;
}