Hacker News new | ask | show | jobs
by nuopnu 3734 days ago
I can't provide you a full solution, but here are the hints:

- gcc5 definition: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/...

- Old cc wrapper with a custom libc option https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/...

- libc in the GCC package itself: https://github.com/NixOS/nixpkgs/blob/master/pkgs/developmen...

The whole system is very modular and customizable. But yeah, very hackish and undocumented.