---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "makewhatis",
       position: (4, 3),
      },
     ],
    },
    to: String {
     parts: [
      Interpolation {
       expression: FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (4, 19),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "getBin",
            position: (4, 23),
           },
          ],
         },
         default: None,
        },
        arguments: [
         PropertyAccess {
          expression: Variable {
           identifier: "cfg",
           position: (4, 30),
          },
          attribute_path: AttributePath {
           parts: [
            Raw {
             content: "package",
             position: (4, 34),
            },
           ],
          },
          default: None,
         },
        ],
       },
      },
      Raw {
       content: "/bin/makewhatis",
       position: (4, 42),
      },
     ],
     position: (4, 16),
    },
   },
   Binding {
    from: AttributePath {
     parts: [
      Raw {
       content: "cfg",
       position: (6, 3),
      },
     ],
    },
    to: PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (6, 9),
     },
     attribute_path: AttributePath {
      parts: [
       Raw {
        content: "documentation",
        position: (6, 16),
       },
       Raw {
        content: "man",
        position: (6, 30),
       },
       Raw {
        content: "mandoc",
        position: (6, 34),
       },
      ],
     },
     default: None,
    },
   },
  ],
  target: Map {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "meta",
        position: (9, 3),
       },
       Raw {
        content: "maintainers",
        position: (9, 8),
       },
      ],
     },
     to: List {
      elements: [
       PropertyAccess {
        expression: Variable {
         identifier: "lib",
         position: (9, 24),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "maintainers",
           position: (9, 28),
          },
          Raw {
           content: "sternenseemann",
           position: (9, 40),
          },
         ],
        },
        default: None,
       },
      ],
      position: (9, 22),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "options",
        position: (11, 3),
       },
      ],
     },
     to: Map {
      bindings: [
       Binding {
        from: AttributePath {
         parts: [
          Raw {
           content: "documentation",
           position: (12, 5),
          },
          Raw {
           content: "man",
           position: (12, 19),
          },
          Raw {
           content: "mandoc",
           position: (12, 23),
          },
         ],
        },
        to: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "enable",
              position: (13, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (13, 16),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "mkEnableOption",
                position: (13, 20),
               },
              ],
             },
             default: None,
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "mandoc as the default man page viewer",
                position: (13, 36),
               },
              ],
              position: (13, 35),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "manPath",
              position: (15, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (15, 17),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "mkOption",
                position: (15, 21),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (16, 9),
                  },
                 ],
                },
                to: With {
                 expression: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (16, 21),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "types",
                     position: (16, 25),
                    },
                   ],
                  },
                  default: None,
                 },
                 target: FunctionApplication {
                  function: Variable {
                   identifier: "listOf",
                   position: (16, 32),
                  },
                  arguments: [
                   Variable {
                    identifier: "str",
                    position: (16, 39),
                   },
                  ],
                 },
                 position: (16, 16),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (17, 9),
                  },
                 ],
                },
                to: List {
                 elements: [
                  String {
                   parts: [
                    Raw {
                     content: "share/man",
                     position: (17, 22),
                    },
                   ],
                   position: (17, 21),
                  },
                 ],
                 position: (17, 19),
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "example",
                   position: (18, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (18, 19),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "literalExpression",
                     position: (18, 23),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "[ \"share/man\" \"share/man/fr\" ]",
                     position: (18, 42),
                    },
                   ],
                   position: (18, 41),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (19, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "Change the manpath, i. e. the directories where\n<citerefentry><refentrytitle>man</refentrytitle><manvolnum>1</manvolnum></citerefentry>\nlooks for section-specific directories of man pages.\nYou only need to change this setting if you want extra man pages\n(e. g. in non-english languages). All values must be strings that\nare a valid path from the target prefix (without including it).\nThe first value given takes priority.\n",
                   position: (20, 1),
                  },
                 ],
                 position: (19, 23),
                },
               },
              ],
              recursive: false,
              position: (15, 30),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "package",
              position: (30, 7),
             },
            ],
           },
           to: FunctionApplication {
            function: PropertyAccess {
             expression: Variable {
              identifier: "lib",
              position: (30, 17),
             },
             attribute_path: AttributePath {
              parts: [
               Raw {
                content: "mkOption",
                position: (30, 21),
               },
              ],
             },
             default: None,
            },
            arguments: [
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "type",
                   position: (31, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "lib",
                  position: (31, 16),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "types",
                    position: (31, 20),
                   },
                   Raw {
                    content: "package",
                    position: (31, 26),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "default",
                   position: (32, 9),
                  },
                 ],
                },
                to: PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (32, 19),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "mandoc",
                    position: (32, 24),
                   },
                  ],
                 },
                 default: None,
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "defaultText",
                   position: (33, 9),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "lib",
                   position: (33, 23),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "literalExpression",
                     position: (33, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.mandoc",
                     position: (33, 46),
                    },
                   ],
                   position: (33, 45),
                  },
                 ],
                },
               },
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "description",
                   position: (34, 9),
                  },
                 ],
                },
                to: String {
                 parts: [
                  Raw {
                   content: "The <literal>mandoc</literal> derivation to use. Useful to override\nconfiguration options used for the package.\n",
                   position: (35, 1),
                  },
                 ],
                 position: (34, 23),
                },
               },
              ],
              recursive: false,
              position: (30, 30),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (12, 32),
        },
       },
      ],
      recursive: false,
      position: (11, 13),
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "config",
        position: (42, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (42, 12),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "mkIf",
          position: (42, 16),
         },
        ],
       },
       default: None,
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (42, 21),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "enable",
           position: (42, 25),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         Binding {
          from: AttributePath {
           parts: [
            Raw {
             content: "environment",
             position: (43, 5),
            },
           ],
          },
          to: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "systemPackages",
                position: (44, 7),
               },
              ],
             },
             to: List {
              elements: [
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (44, 26),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "package",
                   position: (44, 30),
                  },
                 ],
                },
                default: None,
               },
              ],
              position: (44, 24),
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "etc",
                position: (47, 7),
               },
               Expression {
                ast: String {
                 parts: [
                  Raw {
                   content: "man.conf",
                   position: (47, 12),
                  },
                 ],
                 position: (47, 11),
                },
               },
               Raw {
                content: "text",
                position: (47, 22),
               },
              ],
             },
             to: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (47, 29),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "concatMapStrings",
                  position: (47, 33),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               Parentheses {
                expression: Function {
                 argument: Simple {
                  identifier: "path",
                 },
                 definition: String {
                  parts: [
                   Raw {
                    content: "manpath /run/current-system/sw/",
                    position: (48, 1),
                   },
                   Interpolation {
                    expression: Variable {
                     identifier: "path",
                     position: (48, 42),
                    },
                   },
                   Raw {
                    content: "\n",
                    position: (48, 47),
                   },
                  ],
                  position: (47, 57),
                 },
                 position: (47, 51),
                },
                position: (47, 50),
               },
               PropertyAccess {
                expression: Variable {
                 identifier: "cfg",
                 position: (49, 11),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "manPath",
                   position: (49, 15),
                  },
                 ],
                },
                default: None,
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "extraSetup",
                position: (54, 7),
               },
              ],
             },
             to: FunctionApplication {
              function: PropertyAccess {
               expression: Variable {
                identifier: "lib",
                position: (54, 20),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "mkIf",
                  position: (54, 24),
                 },
                ],
               },
               default: None,
              },
              arguments: [
               PropertyAccess {
                expression: Variable {
                 identifier: "config",
                 position: (54, 29),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "documentation",
                   position: (54, 36),
                  },
                  Raw {
                   content: "man",
                   position: (54, 50),
                  },
                  Raw {
                   content: "generateCaches",
                   position: (54, 54),
                  },
                 ],
                },
                default: None,
               },
               String {
                parts: [
                 Raw {
                  content: "",
                  position: (55, 1),
                 },
                 Interpolation {
                  expression: Variable {
                   identifier: "makewhatis",
                   position: (55, 11),
                  },
                 },
                 Raw {
                  content: " -T utf8 ",
                  position: (55, 22),
                 },
                 Interpolation {
                  expression: FunctionApplication {
                   function: PropertyAccess {
                    expression: Variable {
                     identifier: "lib",
                     position: (56, 11),
                    },
                    attribute_path: AttributePath {
                     parts: [
                      Raw {
                       content: "concatMapStringsSep",
                       position: (56, 15),
                      },
                     ],
                    },
                    default: None,
                   },
                   arguments: [
                    String {
                     parts: [
                      Raw {
                       content: " ",
                       position: (56, 36),
                      },
                     ],
                     position: (56, 35),
                    },
                    Parentheses {
                     expression: Function {
                      argument: Simple {
                       identifier: "path",
                      },
                      definition: String {
                       parts: [
                        Raw {
                         content: "\"$out/",
                         position: (56, 47),
                        },
                        Interpolation {
                         expression: Variable {
                          identifier: "path",
                          position: (56, 56),
                         },
                        },
                        Raw {
                         content: "\"",
                         position: (56, 61),
                        },
                       ],
                       position: (56, 46),
                      },
                      position: (56, 40),
                     },
                     position: (56, 39),
                    },
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (56, 66),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "manPath",
                        position: (56, 70),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                  },
                 },
                 Raw {
                  content: "\n",
                  position: (57, 10),
                 },
                ],
                position: (54, 69),
               },
              ],
             },
            },
           ],
           recursive: false,
           position: (43, 19),
          },
         },
        ],
        recursive: false,
        position: (42, 32),
       },
      ],
     },
    },
   ],
   recursive: false,
   position: (8, 4),
  },
  position: (3, 1),
 },
 position: (1, 1),
}