packages/optfil/default.nix
Fil-C at /opt/fil for ordinary x86-64 Linux systems, in the layout of upstream's optfil distribution: the filcc and fil++ compiler with its runtime, glibc, libc++ and headers, and memory-safe programs and libraries.
The tree is the Nix closure of all that, with every store path rewritten in place to a path under /opt/fil of the same length (mkprefix.py). The toolchain and the packages in merged land directly in /opt/fil, the way upstream lays them out; the rest of the closure lands in /opt/fil/s.
Programs and libraries in /opt/fil/bin, /opt/fil/lib and /opt/fil/include. Their other dependencies are found in /opt/fil/s. Libraries whose pkg-config files others require are here too, so that, for example, pkg-config --libs libcurl works.
The compiler in upstream's layout. Clang uses /opt/fil/lib and /opt/fil/include, and finds ld and sarcasm in /opt/fil/bin, when its executable is in /opt/fil/bin.
The toolchain has the files of these.