summary refs log tree commit diff
path: root/doc/stdenv/multiple-output.chapter.md
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-05-11 00:52:26 +0300
committerArtturin <Artturin@artturin.com>2022-05-27 05:57:43 +0300
commitc1fffdfffb43b07ce09b14da0af9a856e1e8566e (patch)
tree1ecb988330d7abff572631331234e1f6115f5514 /doc/stdenv/multiple-output.chapter.md
parent0c4d65b21efd3ae2fcdec54492cbaa6542352eb9 (diff)
downloadnixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar.gz
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar.bz2
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar.lz
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar.xz
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.tar.zst
nixpkgs-c1fffdfffb43b07ce09b14da0af9a856e1e8566e.zip
treewide: change some glibc to stdenv.cc.libc
Diffstat (limited to 'doc/stdenv/multiple-output.chapter.md')
-rw-r--r--doc/stdenv/multiple-output.chapter.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/stdenv/multiple-output.chapter.md b/doc/stdenv/multiple-output.chapter.md
index a8c96a25b7b..65156816b99 100644
--- a/doc/stdenv/multiple-output.chapter.md
+++ b/doc/stdenv/multiple-output.chapter.md
@@ -77,7 +77,7 @@ There is a special handling of the `debug` output, described at [](#stdenv-separ
 
 A commonly adopted convention in `nixpkgs` is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the `perl` package contains a `perl` executable it can be referenced as `${pkgs.perl}/bin/perl` within a Nix derivation that needs to execute a Perl script.
 
-The `glibc` package is a deliberate single exception to the “binaries first” convention. The `glibc` has `libs` as its first output allowing the libraries provided by `glibc` to be referenced directly (e.g. `${glibc}/lib/ld-linux-x86-64.so.2`). The executables provided by `glibc` can be accessed via its `bin` attribute (e.g. `${glibc.bin}/bin/ldd`).
+The `glibc` package is a deliberate single exception to the “binaries first” convention. The `glibc` has `libs` as its first output allowing the libraries provided by `glibc` to be referenced directly (e.g. `${glibc}/lib/ld-linux-x86-64.so.2`). The executables provided by `glibc` can be accessed via its `bin` attribute (e.g. `${lib.getBin stdenv.cc.libc}/bin/ldd`).
 
 The reason for why `glibc` deviates from the convention is because referencing a library provided by `glibc` is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of `glibc` libraries from Nix packages (please see the documentation on [patchelf](https://github.com/NixOS/patchelf) for more details).