summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2018-10-11 17:23:47 +0200
committerBas van Dijk <v.dijk.bas@gmail.com>2018-10-11 17:23:47 +0200
commitfceab3ec621e13b6317af77c7177c7ebd2c1dd64 (patch)
treeb74b7269191ce0f3d5cb260398de157dc0d0ce31 /lib
parent2dcd512e7431001c7c0b80db60f524e2893c7654 (diff)
downloadnixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar.gz
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar.bz2
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar.lz
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar.xz
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.tar.zst
nixlib-fceab3ec621e13b6317af77c7177c7ebd2c1dd64.zip
lib: fix wording of the `overrideScope` warning
Diffstat (limited to 'lib')
-rw-r--r--lib/customisation.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix
index df9d977e9ec7..68062dd0daf0 100644
--- a/lib/customisation.nix
+++ b/lib/customisation.nix
@@ -196,7 +196,7 @@ rec {
           newScope = scope: newScope (self // scope);
           callPackage = self.newScope {};
           overrideScope = g: lib.warn
-            "`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."
+            "`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."
             (makeScope newScope (lib.fixedPoints.extends (lib.flip g) f));
           overrideScope' = g: makeScope newScope (lib.fixedPoints.extends g f);
           packages = f;