---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "cfg",
       position: (4, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (4, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "documentation",
        position: (4, 16),
       },
       Raw {
        content: "man",
        position: (4, 30),
       },
       Raw {
        content: "man-db",
        position: (4, 34),
       },
      ],
     },
     default: None,
    },
   ),
  ],
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (8, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "documentation",
           position: (9, 5),
          },
          Raw {
           content: "man",
           position: (9, 19),
          },
          Raw {
           content: "man-db",
           position: (9, 23),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "enable",
              position: (10, 7),
             },
            ],
           },
           BinaryOperation {
            operator: Update,
            operands: [
             FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (10, 16),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "mkEnableOption",
                  position: (10, 20),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: "man-db as the default man page viewer",
                  position: (10, 36),
                 },
                ],
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (11, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (11, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "documentation",
                    position: (11, 26),
                   },
                   Raw {
                    content: "man",
                    position: (11, 40),
                   },
                   Raw {
                    content: "enable",
                    position: (11, 44),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (12, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (12, 23),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "literalExpression",
                     position: (12, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "config.documentation.man.enable",
                     position: (12, 46),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (13, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "false",
                 position: (13, 19),
                },
               ),
              ],
              recursive: false,
              position: (10, 78),
             },
            ],
            position: (10, 75),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "manualPages",
              position: (16, 7),
             },
            ],
           },
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (16, 21),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "mkOption",
                position: (16, 25),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (17, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (17, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "types",
                    position: (17, 20),
                   },
                   Raw {
                    content: "path",
                    position: (17, 26),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (18, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "pkgs",
                   position: (18, 19),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "buildEnv",
                     position: (18, 24),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "name",
                        position: (19, 11),
                       },
                      ],
                     },
                     String {
                      parts: [
                       Raw {
                        content: "man-paths",
                        position: (19, 19),
                       },
                      ],
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "paths",
                        position: (20, 11),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "config",
                       position: (20, 19),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "environment",
                         position: (20, 26),
                        },
                        Raw {
                         content: "systemPackages",
                         position: (20, 38),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "pathsToLink",
                        position: (21, 11),
                       },
                      ],
                     },
                     List {
                      elements: [
                       String {
                        parts: [
                         Raw {
                          content: "/share/man",
                          position: (21, 28),
                         },
                        ],
                       },
                      ],
                      position: (21, 25),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "extraOutputsToInstall",
                        position: (22, 11),
                       },
                      ],
                     },
                     BinaryOperation {
                      operator: Concatenation,
                      operands: [
                       List {
                        elements: [
                         String {
                          parts: [
                           Raw {
                            content: "man",
                            position: (22, 38),
                           },
                          ],
                         },
                        ],
                        position: (22, 35),
                       },
                       FunctionApplication {
                        function: PropertyAccess {
                         expression: Variable {
                          identifier: "lib",
                          position: (23, 16),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "optionals",
                            position: (23, 20),
                           },
                          ],
                         },
                         default: None,
                        },
                        arguments: [
                         PropertyAccess {
                          expression: Variable {
                           identifier: "config",
                           position: (23, 30),
                          },
                          attribute_path: AttributePath {
                           attributes: [
                            Raw {
                             content: "documentation",
                             position: (23, 37),
                            },
                            Raw {
                             content: "dev",
                             position: (23, 51),
                            },
                            Raw {
                             content: "enable",
                             position: (23, 55),
                            },
                           ],
                          },
                          default: None,
                         },
                         List {
                          elements: [
                           String {
                            parts: [
                             Raw {
                              content: "devman",
                              position: (23, 65),
                             },
                            ],
                           },
                          ],
                          position: (23, 62),
                         },
                        ],
                       },
                      ],
                      position: (23, 13),
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "ignoreCollisions",
                        position: (24, 11),
                       },
                      ],
                     },
                     Variable {
                      identifier: "true",
                      position: (24, 30),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (18, 33),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (26, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (26, 23),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "literalDocBook",
                     position: (26, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "all man pages in <option>config.environment.systemPackages</option>",
                     position: (26, 43),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (27, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "The manual pages to generate caches for if <option>documentation.man.generateCaches</option>\nis enabled. Must be a path to a directory with man pages under\n<literal>/share/man</literal>; see the source for an example.\nAdvanced users can make this a content-addressed derivation to save a few rebuilds.\n",
                   position: (28, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (16, 34),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "package",
              position: (35, 7),
             },
            ],
           },
           FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (35, 17),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "mkOption",
                position: (35, 21),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (36, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (36, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "types",
                    position: (36, 20),
                   },
                   Raw {
                    content: "package",
                    position: (36, 26),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (37, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (37, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "man-db",
                    position: (37, 24),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (38, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (38, 23),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "literalExpression",
                     position: (38, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.man-db",
                     position: (38, 46),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (39, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "The <literal>man-db</literal> derivation to use. Useful to override\nconfiguration options used for the package.\n",
                   position: (40, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (35, 30),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (9, 32),
        },
       ),
      ],
      recursive: false,
      position: (8, 13),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "imports",
        position: (47, 3),
       },
      ],
     },
     List {
      elements: [
       FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (48, 6),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "mkRenamedOptionModule",
            position: (48, 10),
           },
          ],
         },
         default: None,
        },
        arguments: [
         List {
          elements: [
           String {
            parts: [
             Raw {
              content: "documentation",
              position: (48, 35),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "man",
              position: (48, 51),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "manualPages",
              position: (48, 57),
             },
            ],
           },
          ],
          position: (48, 32),
         },
         List {
          elements: [
           String {
            parts: [
             Raw {
              content: "documentation",
              position: (48, 75),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "man",
              position: (48, 91),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "man-db",
              position: (48, 97),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "manualPages",
              position: (48, 106),
             },
            ],
           },
          ],
          position: (48, 72),
         },
        ],
       },
      ],
      position: (47, 13),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (51, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (51, 12),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "mkIf",
          position: (51, 16),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (51, 21),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (51, 25),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "environment",
             position: (52, 5),
            },
            Raw {
             content: "systemPackages",
             position: (52, 17),
            },
           ],
          },
          List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (52, 36),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "package",
                position: (52, 40),
               },
              ],
             },
             default: None,
            },
           ],
           position: (52, 34),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "environment",
             position: (53, 5),
            },
            Raw {
             content: "etc",
             position: (53, 17),
            },
            Expression {
             expression: String {
              parts: [
               Raw {
                content: "man_db.conf",
                position: (53, 22),
               },
              ],
             },
            },
            Raw {
             content: "text",
             position: (53, 35),
            },
           ],
          },
          LetIn {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "manualCache",
                position: (55, 9),
               },
              ],
             },
             FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (55, 23),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "runCommandLocal",
                  position: (55, 28),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: "man-cache",
                  position: (55, 45),
                 },
                ],
               },
               Map {
                bindings: [],
                recursive: false,
                position: (55, 56),
               },
               String {
                parts: [
                 Raw {
                  content: "echo \"MANDB_MAP ",
                  position: (56, 1),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (56, 29),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "manualPages",
                      position: (56, 33),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/share/man $out\" > man.conf\n",
                  position: (56, 45),
                 },
                 Expression {
                  expression: PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (57, 13),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "package",
                      position: (57, 17),
                     },
                    ],
                   },
                   default: None,
                  },
                 },
                 Raw {
                  content: "/bin/mandb -C man.conf -psc >/dev/null 2>&1\n",
                  position: (57, 25),
                 },
                ],
               },
              ],
             },
            ),
           ],
           target: String {
            parts: [
             Raw {
              content: "# Manual pages paths for NixOS\nMANPATH_MAP /run/current-system/sw/bin /run/current-system/sw/share/man\nMANPATH_MAP /run/wrappers/bin          /run/current-system/sw/share/man\n\n",
              position: (61, 1),
             },
             Expression {
              expression: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "lib",
                 position: (65, 11),
                },
                attribute_path: AttributePath {
                 attributes: [
                  Raw {
                   content: "optionalString",
                   position: (65, 15),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "config",
                  position: (65, 30),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "documentation",
                    position: (65, 37),
                   },
                   Raw {
                    content: "man",
                    position: (65, 51),
                   },
                   Raw {
                    content: "generateCaches",
                    position: (65, 55),
                   },
                  ],
                 },
                 default: None,
                },
                String {
                 parts: [
                  Raw {
                   content: "# Generated manual pages cache for NixOS (immutable)\nMANDB_MAP /run/current-system/sw/share/man ",
                   position: (66, 1),
                  },
                  Expression {
                   expression: Variable {
                    identifier: "manualCache",
                    position: (67, 54),
                   },
                  },
                  Raw {
                   content: "\n",
                   position: (67, 66),
                  },
                 ],
                },
               ],
              },
             },
             Raw {
              content: "\n# Manual pages caches for NixOS\nMANDB_MAP /run/current-system/sw/share/man /var/cache/man/nixos\n",
              position: (68, 12),
             },
            ],
           },
           position: (54, 7),
          },
         ),
        ],
        recursive: false,
        position: (51, 32),
       },
      ],
     },
    ),
   ],
   recursive: false,
   position: (7, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}