diff options
author | Artturi <Artturin@artturin.com> | 2022-05-27 17:56:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 17:56:19 +0300 |
commit | 60a08714866da907bc9e63e49a157c8d20893520 (patch) | |
tree | af23a9167b0d33fe314b871943e4bf76ddda2c77 /doc | |
parent | eb41f632ff07d5f1ae0416cb768afbeca41ca54c (diff) | |
parent | c1fffdfffb43b07ce09b14da0af9a856e1e8566e (diff) | |
download | nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar.gz nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar.bz2 nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar.lz nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar.xz nixlib-60a08714866da907bc9e63e49a157c8d20893520.tar.zst nixlib-60a08714866da907bc9e63e49a157c8d20893520.zip |
Merge pull request #172391 from Artturin/deprecate-stdenv-glibc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stdenv/multiple-output.chapter.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/stdenv/multiple-output.chapter.md b/doc/stdenv/multiple-output.chapter.md index 62bf543e51e5..65156816b991 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. `${stdenv.glibc}/lib/ld-linux-x86-64.so.2`). The executables provided by `glibc` can be accessed via its `bin` attribute (e.g. `${stdenv.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). |