nixpkgs/pkgs/stdenv
John Ericson f110a182a6 stdenv: Fix overriding + overrideAttrs
The old stdenv adapters were subtly wrong in two ways:

 - `overrideAttrs` leaked the original, unoverridden `mkDerivation`.

 - `stdenv.override` would throw away any manually-set `mkDerivation`
   from a stdenv reverting to the original.

Now, `mkDerivation` is controlled (nearly directly) via an argument, and
always correctly closes over the final ("self") stdenv. This means the
adapters can work entirely via `.override` without any manual `stdenv //
...`, and both those issues are fixed.

Note hashes are changed, because stdenvs no previously overridden like
`stdenvNoCC` and `crossLibcStdenv` now are. I had to add some
`dontDisableStatic = true` accordingly. The flip side however is that
since the overrides compose, we no longer need to override anything but
the default `stdenv` from which all the others are created.
2021-08-18 17:22:50 +00:00
..
cross darwin cross: include CoreFoundation in stdenv 2021-05-17 00:27:01 +09:00
custom stdenv: allow custom stdenv to take crossOverlays 2019-01-07 20:53:10 -06:00
cygwin treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
darwin stdenv/darwin: switch to the official bootstrap URLs 2021-07-16 10:44:04 +02:00
freebsd Make the bootsrap respect the contentAddressedByDefault setting 2021-04-28 10:25:49 +02:00
generic stdenv: Fix overriding + overrideAttrs 2021-08-18 17:22:50 +00:00
linux stdenv/make-bootstrap-tools: nuke yet another header 2021-07-16 16:15:32 +02:00
native stdenv/native: fix bintools import 2021-06-07 11:26:15 +00:00
nix stdenv/{native,nix}: add lib to cc-wrapper args 2021-04-21 11:56:55 -04:00
adapters.nix stdenv: Fix overriding + overrideAttrs 2021-08-18 17:22:50 +00:00
booter.nix pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery 2019-12-30 18:09:45 -05:00
common-path.nix
default.nix stdenv/darwin: Apple Silicon support 2021-05-17 00:27:02 +09:00