top-level: Modernize stdenv.overrides giving it self and super

Document breaking change in 17.03 release notes
This commit is contained in:
John Ericson
2017-01-13 10:36:11 -05:00
parent f673243aff
commit 0ef8b69d12
7 changed files with 49 additions and 42 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ rec {
# A function that builds a "native" stdenv (one that uses tools in
# /usr etc.).
makeStdenv =
{ cc, fetchurl, extraPath ? [], overrides ? (pkgs: { }) }:
{ cc, fetchurl, extraPath ? [], overrides ? (self: super: { }) }:
import ../generic {
preHook =
@@ -142,7 +142,7 @@ rec {
stdenvBoot2 = makeStdenv {
inherit cc fetchurl;
extraPath = [ stdenvBoot1Pkgs.xz ];
overrides = pkgs: { inherit (stdenvBoot1Pkgs) xz; };
overrides = self: super: { inherit (stdenvBoot1Pkgs) xz; };
};