From c1311d12237247e01b092e020563f34cfac8aa86 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 13 Oct 2022 21:14:53 +0200 Subject: [PATCH] doc/stdenv: Move Other hooks after all hooks --- doc/stdenv/stdenv.chapter.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 8059fca5e5a7..166587d3284c 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1115,11 +1115,6 @@ This hook only runs when compiling for Linux. This sets `SOURCE_DATE_EPOCH` to the modification time of the most recent file. -### Other hooks - -Many other packages provide hooks, that are not part of `stdenv`. You can find -these in the [Hooks Reference](#chap-hooks). - ### Bintools Wrapper and hook {#bintools-wrapper} The Bintools Wrapper wraps the binary utilities for a bunch of miscellaneous purposes. These are GNU Binutils when targeting Linux, and a mix of cctools and GNU binutils for Darwin. \[The “Bintools” name is supposed to be a compromise between “Binutils” and “cctools” not denoting any specific implementation.\] Specifically, the underlying bintools package, and a C standard library (glibc or Darwin’s libSystem, just for the dynamic loader) are all fed in, and dependency finding, hardening (see below), and purity checks for each are handled by the Bintools Wrapper. Packages typically depend on CC Wrapper, which in turn (at run time) depends on the Bintools Wrapper. @@ -1140,6 +1135,11 @@ Similarly, the CC Wrapper follows the Bintools Wrapper in defining standard envi Here are some more packages that provide a setup hook. Since the list of hooks is extensible, this is not an exhaustive list. The mechanism is only to be used as a last resort, so it might cover most uses. +### Other hooks + +Many other packages provide hooks, that are not part of `stdenv`. You can find +these in the [Hooks Reference](#chap-hooks). + ## Purity in Nixpkgs {#sec-purity-in-nixpkgs} *Measures taken to prevent dependencies on packages outside the store, and what you can do to prevent them.*