+2
-10
doc/stdenv/stdenv.chapter.md
+2
-10
doc/stdenv/stdenv.chapter.md
···-to let `stdenv` set up the environment (e.g. by resetting `PATH` and populating it from build inputs). If you want, you can still use `stdenv`’s generic builder:+where `stdenv` sets up the environment automatically (e.g. by resetting `PATH` and populating it from build inputs). If you want, you can use `stdenv`’s generic builder:···The *existence* of setups hooks has long been documented and packages inside Nixpkgs are free to use this mechanism. Other packages, however, should not rely on these mechanisms not changing between Nixpkgs versions. Because of the existing issues with this system, there’s little benefit from mandating it be stable for any period of time.-First, let’s cover some setup hooks that are part of Nixpkgs default `stdenv`. This means that they are run for every package built using `stdenv.mkDerivation` or when using a custom builder that has `source $stdenv/setup`. Some of these are platform specific, so they may run on Linux but not Darwin or vice-versa.+First, let’s cover some setup hooks that are part of Nixpkgs default `stdenv`. This means that they are run for every package built using `stdenv.mkDerivation`, even with custom builders. Some of these are platform specific, so they may run on Linux but not Darwin or vice-versa.
-2
nixos/lib/make-system-tarball.sh
-2
nixos/lib/make-system-tarball.sh
-1
nixos/modules/services/computing/slurm/slurm.nix
-1
nixos/modules/services/computing/slurm/slurm.nix
-3
nixos/modules/services/networking/ircd-hybrid/builder.sh
-3
nixos/modules/services/networking/ircd-hybrid/builder.sh
-3
nixos/modules/services/web-servers/jboss/builder.sh
-3
nixos/modules/services/web-servers/jboss/builder.sh
-2
pkgs/applications/audio/pianoteq/default.nix
-2
pkgs/applications/audio/pianoteq/default.nix
-2
pkgs/applications/emulators/wine/builder-wow.sh
-2
pkgs/applications/emulators/wine/builder-wow.sh
-3
pkgs/build-support/fetchbzr/builder.sh
-3
pkgs/build-support/fetchbzr/builder.sh
-3
pkgs/build-support/fetchcvs/builder.sh
-3
pkgs/build-support/fetchcvs/builder.sh
-3
pkgs/build-support/fetchdarcs/builder.sh
-3
pkgs/build-support/fetchdarcs/builder.sh
-2
pkgs/build-support/fetchdocker/fetchdocker-builder.sh
-2
pkgs/build-support/fetchdocker/fetchdocker-builder.sh
-1
pkgs/build-support/fetchdocker/generic-fetcher.nix
-1
pkgs/build-support/fetchdocker/generic-fetcher.nix
-2
pkgs/build-support/fetchfirefoxaddon/default.nix
-2
pkgs/build-support/fetchfirefoxaddon/default.nix
-2
pkgs/build-support/fetchfossil/builder.sh
-2
pkgs/build-support/fetchfossil/builder.sh
-2
pkgs/build-support/fetchgit/builder.sh
-2
pkgs/build-support/fetchgit/builder.sh
-2
pkgs/build-support/fetchhg/builder.sh
-2
pkgs/build-support/fetchhg/builder.sh
-3
pkgs/build-support/fetchipfs/builder.sh
-3
pkgs/build-support/fetchipfs/builder.sh
···-if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
-3
pkgs/build-support/fetchmtn/builder.sh
-3
pkgs/build-support/fetchmtn/builder.sh
-3
pkgs/build-support/fetchsvn/builder.sh
-3
pkgs/build-support/fetchsvn/builder.sh
-3
pkgs/build-support/fetchsvnssh/builder.sh
-3
pkgs/build-support/fetchsvnssh/builder.sh
-3
pkgs/build-support/fetchurl/builder.sh
-3
pkgs/build-support/fetchurl/builder.sh
-2
pkgs/build-support/fetchurl/write-mirror-list.sh
-2
pkgs/build-support/fetchurl/write-mirror-list.sh
-2
pkgs/build-support/kernel/make-initrd.sh
-2
pkgs/build-support/kernel/make-initrd.sh
-2
pkgs/build-support/kernel/modules-closure.sh
-2
pkgs/build-support/kernel/modules-closure.sh
-1
pkgs/build-support/substitute-files/substitute-all-files.nix
-1
pkgs/build-support/substitute-files/substitute-all-files.nix
-2
pkgs/build-support/substitute/substitute-all.sh
-2
pkgs/build-support/substitute/substitute-all.sh
-2
pkgs/build-support/substitute/substitute.sh
-2
pkgs/build-support/substitute/substitute.sh
-3
pkgs/by-name/bo/boot/builder.sh
-3
pkgs/by-name/bo/boot/builder.sh
-2
pkgs/by-name/in/invidious/videojs.sh
-2
pkgs/by-name/in/invidious/videojs.sh
-3
pkgs/by-name/wt/wtk/builder.sh
-3
pkgs/by-name/wt/wtk/builder.sh
-3
pkgs/by-name/xo/xorg_sys_opengl/builder.sh
-3
pkgs/by-name/xo/xorg_sys_opengl/builder.sh
-1
pkgs/by-name/ya/yandex-disk/package.nix
-1
pkgs/by-name/ya/yandex-disk/package.nix
-2
pkgs/development/bower-modules/generic/default.nix
-2
pkgs/development/bower-modules/generic/default.nix
-3
pkgs/development/compilers/chicken/4/fetchegg/builder.sh
-3
pkgs/development/compilers/chicken/4/fetchegg/builder.sh
-3
pkgs/development/compilers/fpc/binary-builder-darwin.sh
-3
pkgs/development/compilers/fpc/binary-builder-darwin.sh
-3
pkgs/development/compilers/fpc/binary-builder.sh
-3
pkgs/development/compilers/fpc/binary-builder.sh
-2
pkgs/development/compilers/ios-cross-compile/9.2_builder.sh
-2
pkgs/development/compilers/ios-cross-compile/9.2_builder.sh
-3
pkgs/development/libraries/glibc/locales-builder.sh
-3
pkgs/development/libraries/glibc/locales-builder.sh
···-if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
-3
pkgs/development/libraries/gtk-sharp/builder.sh
-3
pkgs/development/libraries/gtk-sharp/builder.sh
-3
pkgs/development/perl-modules/generic/builder.sh
-3
pkgs/development/perl-modules/generic/builder.sh
-3
pkgs/development/tools/misc/automake/builder.sh
-3
pkgs/development/tools/misc/automake/builder.sh
···-if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
-3
pkgs/os-specific/linux/nvidia-x11/builder.sh
-3
pkgs/os-specific/linux/nvidia-x11/builder.sh
-3
pkgs/servers/x11/xorg/builder.sh
-3
pkgs/servers/x11/xorg/builder.sh
···-if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
-3
pkgs/stdenv/generic/default-builder.sh
-3
pkgs/stdenv/generic/default-builder.sh
+1
-1
pkgs/stdenv/generic/make-derivation.nix
+1
-1
pkgs/stdenv/generic/make-derivation.nix
···
+3
pkgs/stdenv/generic/source-stdenv.sh
+3
pkgs/stdenv/generic/source-stdenv.sh
-2
pkgs/tools/typesetting/tex/nix/animatedot.sh
-2
pkgs/tools/typesetting/tex/nix/animatedot.sh
-2
pkgs/tools/typesetting/tex/nix/dot2pdf.sh
-2
pkgs/tools/typesetting/tex/nix/dot2pdf.sh
-2
pkgs/tools/typesetting/tex/nix/dot2ps.sh
-2
pkgs/tools/typesetting/tex/nix/dot2ps.sh
-2
pkgs/tools/typesetting/tex/nix/lhs2tex.sh
-2
pkgs/tools/typesetting/tex/nix/lhs2tex.sh