In Nixos, I’d like to have access to a gcc that follows standard conventions when searching for include headers, libs, etc. I tried building one with
with import <nixpkgs> {};
gcc-unwrapped.override {noSysDirs = false; }
but that fails to build with /nix/store/wyzm562a91gdzdbd67prjxjxrlf57d1f-binutils-patchelfed-ld-2.40/bin/ld: cannot find crti.o: No such file or directory
. Is it expected that gcc builds with noSysDirs = false? Is there a different way to build such a gcc?