---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: Map {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "options",
        position: (8, 3),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "i18n",
           position: (10, 5),
          },
         ],
        },
        to: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "glibcLocales",
              position: (11, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (11, 22),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (12, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (12, 16),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "path",
                    position: (12, 22),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (13, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (13, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "buildPackages",
                     position: (13, 24),
                    },
                    Raw {
                     content: "glibcLocales",
                     position: (13, 38),
                    },
                    Raw {
                     content: "override",
                     position: (13, 51),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "allLocales",
                        position: (14, 11),
                       },
                      ],
                     },
                     to: FunctionApplication {
                      function: Variable {
                       identifier: "any",
                       position: (14, 24),
                      },
                      arguments: [
                       Parentheses {
                        expression: Function {
                         argument: Simple {
                          identifier: "x",
                         },
                         definition: BinaryOperation {
                          operator: EqualTo,
                          operands: [
                           Variable {
                            identifier: "x",
                            position: (14, 32),
                           },
                           String {
                            parts: [
                             Raw {
                              content: "all",
                              position: (14, 38),
                             },
                            ],
                            position: (14, 37),
                           },
                          ],
                          position: (14, 34),
                         },
                         position: (14, 29),
                        },
                        position: (14, 28),
                       },
                       PropertyAccess {
                        expression: Variable {
                         identifier: "config",
                         position: (14, 44),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "i18n",
                           position: (14, 51),
                          },
                          Raw {
                           content: "supportedLocales",
                           position: (14, 56),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "locales",
                        position: (15, 11),
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "config",
                       position: (15, 21),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "i18n",
                         position: (15, 28),
                        },
                        Raw {
                         content: "supportedLocales",
                         position: (15, 33),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                   recursive: false,
                   position: (13, 60),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "defaultText",
                   position: (17, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (17, 23),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.buildPackages.glibcLocales.override {\n  allLocales = any (x: x == \"all\") config.i18n.supportedLocales;\n  locales = config.i18n.supportedLocales;\n}\n",
                     position: (18, 1),
                    },
                   ],
                   position: (17, 41),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (23, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (23, 19),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.glibcLocales",
                     position: (23, 38),
                    },
                   ],
                   position: (23, 37),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (24, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Customized pkg.glibcLocales package.\n\nChanging this option can disable handling of i18n.defaultLocale\nand supportedLocale.\n",
                   position: (25, 1),
                  },
                 ],
                 position: (24, 23),
                },
               },
              ],
              recursive: false,
              position: (11, 31),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "defaultLocale",
              position: (32, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (32, 23),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (33, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (33, 16),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "str",
                    position: (33, 22),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (34, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "en_US.UTF-8",
                   position: (34, 20),
                  },
                 ],
                 position: (34, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (35, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "nl_NL.UTF-8",
                   position: (35, 20),
                  },
                 ],
                 position: (35, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (36, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "The default locale.  It determines the language for program\nmessages, the format for dates and times, sort order, and so on.\nIt also determines the character set, such as UTF-8.\n",
                   position: (37, 1),
                  },
                 ],
                 position: (36, 23),
                },
               },
              ],
              recursive: false,
              position: (32, 32),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "extraLocaleSettings",
              position: (43, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (43, 29),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (44, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (44, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "attrsOf",
                     position: (44, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (44, 30),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "str",
                      position: (44, 36),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (45, 9),
                  },
                 ],
                },
                to: Map {
                 bindings: [],
                 recursive: false,
                 position: (45, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (46, 9),
                  },
                 ],
                },
                to: Map {
                 bindings: [
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "LC_MESSAGES",
                      position: (46, 21),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "en_US.UTF-8",
                      position: (46, 36),
                     },
                    ],
                    position: (46, 35),
                   },
                  },
                  Binding {
                   from: AttributePath {
                    parts: [
                     Raw {
                      content: "LC_TIME",
                      position: (46, 50),
                     },
                    ],
                   },
                   to: String {
                    parts: [
                     Raw {
                      content: "de_DE.UTF-8",
                      position: (46, 61),
                     },
                    ],
                    position: (46, 60),
                   },
                  },
                 ],
                 recursive: false,
                 position: (46, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (47, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "A set of additional system-wide locale settings other than\n<literal>LANG</literal> which can be configured with\n<option>i18n.defaultLocale</option>.\n",
                   position: (48, 1),
                  },
                 ],
                 position: (47, 23),
                },
               },
              ],
              recursive: false,
              position: (43, 38),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "supportedLocales",
              position: (54, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (54, 26),
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (55, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (55, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "listOf",
                     position: (55, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "types",
                    position: (55, 29),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "str",
                      position: (55, 35),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (56, 9),
                  },
                 ],
                },
                to: List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "all",
                     position: (56, 21),
                    },
                   ],
                   position: (56, 20),
                  },
                 ],
                 position: (56, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (57, 9),
                  },
                 ],
                },
                to: List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "en_US.UTF-8/UTF-8",
                     position: (57, 21),
                    },
                   ],
                   position: (57, 20),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nl_NL.UTF-8/UTF-8",
                     position: (57, 41),
                    },
                   ],
                   position: (57, 40),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "nl_NL/ISO-8859-1",
                     position: (57, 61),
                    },
                   ],
                   position: (57, 60),
                  },
                 ],
                 position: (57, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (58, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "List of locales that the system should support.  The value\n<literal>\"all\"</literal> means that all locales supported by\nGlibc will be installed.  A full list of supported locales\ncan be found at <link\nxlink:href=\"https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED\"/>.\n",
                   position: (59, 1),
                  },
                 ],
                 position: (58, 23),
                },
               },
              ],
              recursive: false,
              position: (54, 35),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (10, 12),
        },
       },
      ],
      recursive: false,
      position: (8, 13),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "config",
        position: (74, 3),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "environment",
           position: (76, 5),
          },
          Raw {
           content: "systemPackages",
           position: (76, 17),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "optional",
          position: (78, 7),
         },
         arguments: [
          Parentheses {
           expression: BinaryOperation {
            operator: NotEqualTo,
            operands: [
             PropertyAccess {
              expression: Variable {
               identifier: "config",
               position: (78, 17),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "i18n",
                 position: (78, 24),
                },
                Raw {
                 content: "supportedLocales",
                 position: (78, 29),
                },
               ],
              },
              default: None,
             },
             List {
              elements: [],
              position: (78, 49),
             },
            ],
            position: (78, 46),
           },
           position: (78, 16),
          },
          Parentheses {
           expression: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (78, 54),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "setPrio",
                position: (78, 58),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Parentheses {
              expression: UnaryOperation {
               operator: Negate,
               operand: Int {
                value: 1,
                position: (78, 68),
               },
               position: (78, 67),
              },
              position: (78, 66),
             },
             PropertyAccess {
              expression: Variable {
               identifier: "config",
               position: (78, 71),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "i18n",
                 position: (78, 78),
                },
                Raw {
                 content: "glibcLocales",
                 position: (78, 83),
                },
               ],
              },
              default: None,
             },
            ],
           },
           position: (78, 53),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "environment",
           position: (80, 5),
          },
          Raw {
           content: "sessionVariables",
           position: (80, 17),
          },
         ],
        },
        to: BinaryOperation {
         operator: Update,
         operands: [
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "LANG",
                position: (81, 9),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "config",
               position: (81, 16),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "i18n",
                 position: (81, 23),
                },
                Raw {
                 content: "defaultLocale",
                 position: (81, 28),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "LOCALE_ARCHIVE",
                position: (82, 9),
               },
              ],
             },
             to: String {
              parts: [
               Raw {
                content: "/run/current-system/sw/lib/locale/locale-archive",
                position: (82, 27),
               },
              ],
              position: (82, 26),
             },
            },
           ],
           recursive: false,
           position: (81, 7),
          },
          PropertyAccess {
           expression: Variable {
            identifier: "config",
            position: (83, 12),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "i18n",
              position: (83, 19),
             },
             Raw {
              content: "extraLocaleSettings",
              position: (83, 24),
             },
            ],
           },
           default: None,
          },
         ],
         position: (83, 9),
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "systemd",
           position: (85, 5),
          },
          Raw {
           content: "globalEnvironment",
           position: (85, 13),
          },
         ],
        },
        to: FunctionApplication {
         function: Variable {
          identifier: "mkIf",
          position: (85, 33),
         },
         arguments: [
          Parentheses {
           expression: BinaryOperation {
            operator: NotEqualTo,
            operands: [
             PropertyAccess {
              expression: Variable {
               identifier: "config",
               position: (85, 39),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "i18n",
                 position: (85, 46),
                },
                Raw {
                 content: "supportedLocales",
                 position: (85, 51),
                },
               ],
              },
              default: None,
             },
             List {
              elements: [],
              position: (85, 71),
             },
            ],
            position: (85, 68),
           },
           position: (85, 38),
          },
          Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "LOCALE_ARCHIVE",
                position: (86, 7),
               },
              ],
             },
             to: String {
              parts: [
               Interpolation {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (86, 27),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "i18n",
                    position: (86, 34),
                   },
                   Raw {
                    content: "glibcLocales",
                    position: (86, 39),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Raw {
                content: "/lib/locale/locale-archive",
                position: (86, 52),
               },
              ],
              position: (86, 24),
             },
            },
           ],
           recursive: false,
           position: (85, 75),
          },
         ],
        },
       },
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "environment",
           position: (90, 5),
          },
          Raw {
           content: "etc",
           position: (90, 17),
          },
          Expression {
           ast: String {
            parts: [
             Raw {
              content: "locale.conf",
              position: (90, 22),
             },
            ],
            position: (90, 21),
           },
          },
          Raw {
           content: "source",
           position: (90, 35),
          },
         ],
        },
        to: FunctionApplication {
         function: PropertyAccess {
          expression: Variable {
           identifier: "pkgs",
           position: (90, 44),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "writeText",
             position: (90, 49),
            },
           ],
          },
          default: None,
         },
         arguments: [
          String {
           parts: [
            Raw {
             content: "locale.conf",
             position: (90, 60),
            },
           ],
           position: (90, 59),
          },
          String {
           parts: [
            Raw {
             content: "LANG=",
             position: (92, 1),
            },
            Interpolation {
             expression: PropertyAccess {
              expression: Variable {
               identifier: "config",
               position: (92, 16),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "i18n",
                 position: (92, 23),
                },
                Raw {
                 content: "defaultLocale",
                 position: (92, 28),
                },
               ],
              },
              default: None,
             },
            },
            Raw {
             content: "\n",
             position: (92, 42),
            },
            Interpolation {
             expression: FunctionApplication {
              function: Variable {
               identifier: "concatStringsSep",
               position: (93, 11),
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: "\n",
                  position: (93, 29),
                 },
                ],
                position: (93, 28),
               },
               Parentheses {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "mapAttrsToList",
                  position: (93, 34),
                 },
                 arguments: [
                  Parentheses {
                   expression: Function {
                    argument: Simple {
                     identifier: "n",
                    },
                    definition: Function {
                     argument: Simple {
                      identifier: "v",
                     },
                     definition: String {
                      parts: [
                       Interpolation {
                        expression: Variable {
                         identifier: "n",
                         position: (93, 59),
                        },
                       },
                       Raw {
                        content: "=",
                        position: (93, 61),
                       },
                       Interpolation {
                        expression: Variable {
                         identifier: "v",
                         position: (93, 64),
                        },
                       },
                      ],
                      position: (93, 56),
                     },
                     position: (93, 53),
                    },
                    position: (93, 50),
                   },
                   position: (93, 49),
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "config",
                    position: (93, 69),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "i18n",
                      position: (93, 76),
                     },
                     Raw {
                      content: "extraLocaleSettings",
                      position: (93, 81),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
                position: (93, 33),
               },
              ],
             },
            },
            Raw {
             content: "\n",
             position: (93, 102),
            },
           ],
           position: (91, 7),
          },
         ],
        },
       },
      ],
      recursive: false,
      position: (74, 12),
     },
    },
   ],
   recursive: false,
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}