# Update std.zig.system.NativePaths.detect to support some more flags on NixOS like environment\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7af412b6b442214572559bec86ca1756cda3a2cf)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7af412b6b442214572559bec86ca1756cda3a2cf

Requested commit: 7af412b6b442214572559bec86ca1756cda3a2cf

Commit: 7af412b6b442214572559bec86ca1756cda3a2cf

Tree: 8064c601c20a66eef87989535c1cb6576c338306

Author: Purple

Committer: Andrew Kelley

## Message

```
Update std.zig.system.NativePaths.detect to support some more flags on NixOS like environment.

Basically detect `-idirafter` flag in `NIX_CFLAGS_COMPILE` and treat it like `-isystem`, also detect `NIX_CFLAGS_LINK` environment variable and treat it like the `NIX_LDFLAGS` .

Reference:
https://github.com/NixOS/nixpkgs/blob/74eefb4210ef545cebd6a7a25356734b0b49854f/pkgs/build-support/build-fhsenv-chroot/env.nix#L83
```

## Parents

- [e427ba9cd59dc876d27e4a71104b5156460ca618](https://git.cafe/gitcafe/zig/commit/e427ba9cd59dc876d27e4a71104b5156460ca618?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7af412b6b442214572559bec86ca1756cda3a2cf?format=markdown)
