Can't use external includes on NixOS?

In zig 0.12.0 there is a NativePaths.detect that uses NIX_ environment variables.
EDIT: the compiler calls it!

  • NIX_CFLAGS_COMPILE is a space separated -framework or -system arguments
  • NIX_LDFLAGS is a space separated -l -L -rpath arguments.

Using addLibraryPath and addIncludePath you can use a library. See also: Linking `ncurses` on NixOS - #5 by RijanHasTwoEars7