@@ -1,5 +1,21 @@
11/* Build configuration used to build glibc, Info files, and locale
2− information. */
2+ information.
3+
4+ Note that this derivation has multiple outputs and does not respect the
5+ standard convention of putting the executables into the first output. The
6+ first output is `lib` so that the libraries provided by this derivation
7+ can be accessed directly, e.g.
8+
9+ "${pkgs.glibc}/lib/ld-linux-x86_64.so.2"
10+
11+ The executables are put into `bin` output and need to be referenced via
12+ the `bin` attribute of the main package, e.g.
13+
14+ "${pkgs.glibc.bin}/bin/ldd".
15+
16+ The executables provided by glibc typically include `ldd`, `locale`, `iconv`
17+ but the exact set depends on the library version and the configuration.
18+*/
319
420{ stdenv, lib
521, buildPlatform, hostPlatform