git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48216 from LumiGuide/fix-overrideScope-warning

lib: fix wording of the `overrideScope` warning

commit041119528ccf5422555070f064f00865af7b5a62 authorJohn Ericson <subscribe@JohnEricson.me> dateThu 11 Oct 2018, 11:48 (8 years ago) parenta296033fceab3e
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;