git.iko.soy/typeable/nixpkgs
on master help sign in
lib: fix wording of the `overrideScope` warning
commitfceab3ec621e13b6317af77c7177c7ebd2c1dd64 authorBas van Dijk <v.dijk.bas@gmail.com> dateThu 11 Oct 2018, 17:23 (8 years ago) parent2dcd512
1 file changed+1−1
lib/customisation.nix+1−1
lib/customisation.nix+1−1
@@ -196,7 +196,7 @@ rec {
196196 newScope = scope: newScope (self // scope);
197197 callPackage = self.newScope {};
198198 overrideScope = g: lib.warn
199− "`overrideScope` (from `lib.makeScope`) is deprecated. Do `overrideScope' (self: self: { … })` instead of `overrideScope (super: self: { … })`. All other overrides have the parameters in that order, including other definitions of `overrideScope`. This was the only definition violating the pattern."
199+ "`overrideScope` (from `lib.makeScope`) is deprecated. Do `overrideScope' (self: super: { … })` instead of `overrideScope (super: self: { … })`. All other overrides have the parameters in that order, including other definitions of `overrideScope`. This was the only definition violating the pattern."
200200 (makeScope newScope (lib.fixedPoints.extends (lib.flip g) f));
201201 overrideScope' = g: makeScope newScope (lib.fixedPoints.extends g f);
202202 packages = f;