summary refs log tree commit diff
path: root/lib/deprecated.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/deprecated.nix')
-rw-r--r--lib/deprecated.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/deprecated.nix b/lib/deprecated.nix
index 983e8d26892..d4e78c39250 100644
--- a/lib/deprecated.nix
+++ b/lib/deprecated.nix
@@ -423,4 +423,12 @@ rec {
       else if isInt x then "int"
       else "string";
 
+  /* deprecated:
+
+     For historical reasons, imap has an index starting at 1.
+
+     But for consistency with the rest of the library we want an index
+     starting at zero.
+  */
+  imap = imap1;
 }