Include note for macOS users using nix

devins2518 2022-06-05 10:48:39 -05:00
parent 3903d34081
commit 868df1ad87

@ -64,4 +64,15 @@ Alternatively, you can use this sample `flake.nix`:
}
);
}
```
## Notes for macOS users
If using macOS, you may need to include the following to properly use nix's clang.
```nix
shellHook = with pkgs.llvmPackages_13; ''
export CPATH="${libcxx.dev}" # Use libcxx's stdlib
export LDFLAGS="-stdlib=libc++ -lc++abi" # Link against the stdlib
'';
```