nixpkgs/pkgs/stdenv/generic
John Ericson 7f3ca3e21a stdenv: Fix handling of dependencies and hooks
4 far-reaching changes: Smaller PATH, New vars, different propagation
logic, and different hook logic

Smaller PATH
------------

`buildInputs` no longer go on the PATH at build time, as they cannot be
run when cross compiling and we don't want to special case. Simply make
a `nativeBuildInput` too if one needs them on the PATH. Fixes #21191.

Many new depedendency variables
-------------------------------

See the stdenv chapter of the nixpkgs manual. I pulled out the existing
documentation of dependency specification into a new section, and added
language for these two (and their propagated equivalents) along side
the others'.

More complex propagation logic
------------------------------

Before a propagated*XXX*Input always acted as if it was specified
directly as a *XXX*Input downstream. That's simple enough, but violates
the intended roles of each sort of dep, which has functional and not
just stylistic consequences.

The new algorithm is detailed in the manual, and ensures everything
ends up in the right place. I tried to give both an informal and formal
description, but I suspect in practice it will not make much sense
until one tries cross compiling, after which it will immediately make
sense as the only sane option.

Simplified hook logic
---------------------

Rather than `envHook` and `crossEnvHook`, whose behavior differs
depending on whether we are cross compiling or not, there is now one
hook per sort (or rather non-propagated and propagated pair of sorts)
of dependency. These new hooks have the same meaning regardless of
cross compilation. See the setup hook section of stdenv chapter of the
Nixpkgs manual for more details.
2017-12-30 22:04:21 -05:00
..
builder.sh stdenvs: Distinguish between extraBuildInputs and extraNativeBuildInputs 2017-08-18 12:02:13 -04:00
check-meta.nix stdenv: make knownVulnerabilities a known meta-type 2017-12-14 07:36:31 -05:00
default-builder.sh
default.nix Get rid of most @rpath nonsense on Darwin 2017-10-08 16:13:46 -04:00
make-derivation.nix stdenv: Fix handling of dependencies and hooks 2017-12-30 22:04:21 -05:00
setup.sh stdenv: Fix handling of dependencies and hooks 2017-12-30 22:04:21 -05:00