---
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: LetIn {
   bindings: [
    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: "xdg",
         position: (6, 16),
        },
        Raw {
         content: "mime",
         position: (6, 20),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "associationOptions",
        position: (7, 3),
       },
      ],
     },
     to: With {
      expression: Variable {
       identifier: "types",
       position: (7, 29),
      },
      target: FunctionApplication {
       function: Variable {
        identifier: "attrsOf",
        position: (7, 36),
       },
       arguments: [
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "coercedTo",
           position: (8, 5),
          },
          arguments: [
           Parentheses {
            expression: FunctionApplication {
             function: Variable {
              identifier: "either",
              position: (8, 16),
             },
             arguments: [
              Parentheses {
               expression: FunctionApplication {
                function: Variable {
                 identifier: "listOf",
                 position: (8, 24),
                },
                arguments: [
                 Variable {
                  identifier: "str",
                  position: (8, 31),
                 },
                ],
               },
               position: (8, 23),
              },
              Variable {
               identifier: "str",
               position: (8, 36),
              },
             ],
            },
            position: (8, 15),
           },
           Parentheses {
            expression: Function {
             argument: Simple {
              identifier: "x",
             },
             definition: FunctionApplication {
              function: Variable {
               identifier: "concatStringsSep",
               position: (8, 45),
              },
              arguments: [
               String {
                parts: [
                 Raw {
                  content: ";",
                  position: (8, 63),
                 },
                ],
                position: (8, 62),
               },
               Parentheses {
                expression: FunctionApplication {
                 function: Variable {
                  identifier: "toList",
                  position: (8, 67),
                 },
                 arguments: [
                  Variable {
                   identifier: "x",
                   position: (8, 74),
                  },
                 ],
                },
                position: (8, 66),
               },
              ],
             },
             position: (8, 42),
            },
            position: (8, 41),
           },
           Variable {
            identifier: "str",
            position: (8, 78),
           },
          ],
         },
         position: (7, 44),
        },
       ],
      },
      position: (7, 24),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "meta",
         position: (13, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "maintainers",
            position: (14, 5),
           },
          ],
         },
         to: BinaryOperation {
          operator: Concatenation,
          operands: [
           PropertyAccess {
            expression: Variable {
             identifier: "teams",
             position: (14, 19),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "freedesktop",
               position: (14, 25),
              },
              Raw {
               content: "members",
               position: (14, 37),
              },
             ],
            },
            default: None,
           },
           Parentheses {
            expression: With {
             expression: Variable {
              identifier: "maintainers",
              position: (14, 54),
             },
             target: List {
              elements: [
               Variable {
                identifier: "figsoda",
                position: (14, 69),
               },
              ],
              position: (14, 67),
             },
             position: (14, 49),
            },
            position: (14, 48),
           },
          ],
          position: (14, 45),
         },
        },
       ],
       recursive: false,
       position: (13, 10),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (17, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "xdg",
            position: (18, 5),
           },
           Raw {
            content: "mime",
            position: (18, 9),
           },
           Raw {
            content: "enable",
            position: (18, 14),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (18, 23),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (19, 7),
                },
               ],
              },
              to: PropertyAccess {
               expression: Variable {
                identifier: "types",
                position: (19, 14),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "bool",
                  position: (19, 20),
                 },
                ],
               },
               default: None,
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (20, 7),
                },
               ],
              },
              to: Variable {
               identifier: "true",
               position: (20, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (21, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Whether to install files to support the\n<link xlink:href=\"https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html\">XDG Shared MIME-info specification</link> and the\n<link xlink:href=\"https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html\">XDG MIME Applications specification</link>.\n",
                 position: (22, 1),
                },
               ],
               position: (21, 21),
              },
             },
            ],
            recursive: false,
            position: (18, 32),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "xdg",
            position: (28, 5),
           },
           Raw {
            content: "mime",
            position: (28, 9),
           },
           Raw {
            content: "addedAssociations",
            position: (28, 14),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (28, 34),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (29, 7),
                },
               ],
              },
              to: Variable {
               identifier: "associationOptions",
               position: (29, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (30, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (30, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (31, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "application/pdf",
                       position: (32, 10),
                      },
                     ],
                     position: (32, 9),
                    },
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "firefox.desktop",
                    position: (32, 30),
                   },
                  ],
                  position: (32, 29),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "text/xml",
                       position: (33, 10),
                      },
                     ],
                     position: (33, 9),
                    },
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "nvim.desktop",
                      position: (33, 25),
                     },
                    ],
                    position: (33, 24),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "codium.desktop",
                      position: (33, 40),
                     },
                    ],
                    position: (33, 39),
                   },
                  ],
                  position: (33, 22),
                 },
                },
               ],
               recursive: false,
               position: (31, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (35, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Adds associations between mimetypes and applications. See the\n<link xlink:href=\"https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#associations\">\nspecifications</link> for more information.\n",
                 position: (36, 1),
                },
               ],
               position: (35, 21),
              },
             },
            ],
            recursive: false,
            position: (28, 43),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "xdg",
            position: (42, 5),
           },
           Raw {
            content: "mime",
            position: (42, 9),
           },
           Raw {
            content: "defaultApplications",
            position: (42, 14),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (42, 36),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (43, 7),
                },
               ],
              },
              to: Variable {
               identifier: "associationOptions",
               position: (43, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (44, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (44, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (45, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "application/pdf",
                       position: (46, 10),
                      },
                     ],
                     position: (46, 9),
                    },
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "firefox.desktop",
                    position: (46, 30),
                   },
                  ],
                  position: (46, 29),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "image/png",
                       position: (47, 10),
                      },
                     ],
                     position: (47, 9),
                    },
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "sxiv.desktop",
                      position: (47, 26),
                     },
                    ],
                    position: (47, 25),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "gimp.desktop",
                      position: (47, 41),
                     },
                    ],
                    position: (47, 40),
                   },
                  ],
                  position: (47, 23),
                 },
                },
               ],
               recursive: false,
               position: (45, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (49, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Sets the default applications for given mimetypes. See the\n<link xlink:href=\"https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#default\">\nspecifications</link> for more information.\n",
                 position: (50, 1),
                },
               ],
               position: (49, 21),
              },
             },
            ],
            recursive: false,
            position: (42, 45),
           },
          ],
         },
        },
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "xdg",
            position: (56, 5),
           },
           Raw {
            content: "mime",
            position: (56, 9),
           },
           Raw {
            content: "removedAssociations",
            position: (56, 14),
           },
          ],
         },
         to: FunctionApplication {
          function: Variable {
           identifier: "mkOption",
           position: (56, 36),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "type",
                 position: (57, 7),
                },
               ],
              },
              to: Variable {
               identifier: "associationOptions",
               position: (57, 14),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "default",
                 position: (58, 7),
                },
               ],
              },
              to: Map {
               bindings: [],
               recursive: false,
               position: (58, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "example",
                 position: (59, 7),
                },
               ],
              },
              to: Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "audio/mp3",
                       position: (60, 10),
                      },
                     ],
                     position: (60, 9),
                    },
                   },
                  ],
                 },
                 to: List {
                  elements: [
                   String {
                    parts: [
                     Raw {
                      content: "mpv.desktop",
                      position: (60, 26),
                     },
                    ],
                    position: (60, 25),
                   },
                   String {
                    parts: [
                     Raw {
                      content: "umpv.desktop",
                      position: (60, 40),
                     },
                    ],
                    position: (60, 39),
                   },
                  ],
                  position: (60, 23),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Expression {
                    ast: String {
                     parts: [
                      Raw {
                       content: "inode/directory",
                       position: (61, 10),
                      },
                     ],
                     position: (61, 9),
                    },
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "codium.desktop",
                    position: (61, 30),
                   },
                  ],
                  position: (61, 29),
                 },
                },
               ],
               recursive: false,
               position: (59, 17),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "description",
                 position: (63, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "Removes associations between mimetypes and applications. See the\n<link xlink:href=\"https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html#associations\">\nspecifications</link> for more information.\n",
                 position: (64, 1),
                },
               ],
               position: (63, 21),
              },
             },
            ],
            recursive: false,
            position: (56, 45),
           },
          ],
         },
        },
       ],
       recursive: false,
       position: (17, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (71, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (71, 12),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (71, 17),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (71, 21),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (72, 5),
             },
             Raw {
              content: "etc",
              position: (72, 17),
             },
             Expression {
              ast: String {
               parts: [
                Raw {
                 content: "xdg/mimeapps.list",
                 position: (72, 22),
                },
               ],
               position: (72, 21),
              },
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "mkIf",
             position: (72, 43),
            },
            arguments: [
             Parentheses {
              expression: BinaryOperation {
               operator: LogicalOr,
               operands: [
                BinaryOperation {
                 operator: LogicalOr,
                 operands: [
                  BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (73, 7),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "addedAssociations",
                        position: (73, 11),
                       },
                      ],
                     },
                     default: None,
                    },
                    Map {
                     bindings: [],
                     recursive: false,
                     position: (73, 32),
                    },
                   ],
                   position: (73, 29),
                  },
                  BinaryOperation {
                   operator: NotEqualTo,
                   operands: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "cfg",
                      position: (74, 10),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "defaultApplications",
                        position: (74, 14),
                       },
                      ],
                     },
                     default: None,
                    },
                    Map {
                     bindings: [],
                     recursive: false,
                     position: (74, 37),
                    },
                   ],
                   position: (74, 34),
                  },
                 ],
                 position: (74, 7),
                },
                BinaryOperation {
                 operator: NotEqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "cfg",
                    position: (75, 10),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "removedAssociations",
                      position: (75, 14),
                     },
                    ],
                   },
                   default: None,
                  },
                  Map {
                   bindings: [],
                   recursive: false,
                   position: (75, 37),
                  },
                 ],
                 position: (75, 34),
                },
               ],
               position: (75, 7),
              },
              position: (72, 48),
             },
             Map {
              bindings: [
               Binding {
                from: AttributePath {
                 parts: [
                  Raw {
                   content: "text",
                   position: (77, 7),
                  },
                 ],
                },
                to: FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "generators",
                   position: (77, 14),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "toINI",
                     position: (77, 25),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Map {
                   bindings: [],
                   recursive: false,
                   position: (77, 31),
                  },
                  Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Expression {
                        ast: String {
                         parts: [
                          Raw {
                           content: "Added Associations",
                           position: (78, 10),
                          },
                         ],
                         position: (78, 9),
                        },
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (78, 32),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "addedAssociations",
                         position: (78, 36),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Expression {
                        ast: String {
                         parts: [
                          Raw {
                           content: "Default Applications",
                           position: (79, 10),
                          },
                         ],
                         position: (79, 9),
                        },
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (79, 34),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "defaultApplications",
                         position: (79, 38),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Binding {
                     from: AttributePath {
                      parts: [
                       Expression {
                        ast: String {
                         parts: [
                          Raw {
                           content: "Removed Associations",
                           position: (80, 10),
                          },
                         ],
                         position: (80, 9),
                        },
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (80, 34),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "removedAssociations",
                         position: (80, 38),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                   ],
                   recursive: false,
                   position: (77, 35),
                  },
                 ],
                },
               },
              ],
              recursive: false,
              position: (76, 7),
             },
            ],
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (84, 5),
             },
             Raw {
              content: "pathsToLink",
              position: (84, 17),
             },
            ],
           },
           to: List {
            elements: [
             String {
              parts: [
               Raw {
                content: "/share/mime",
                position: (84, 34),
               },
              ],
              position: (84, 33),
             },
            ],
            position: (84, 31),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (86, 5),
             },
             Raw {
              content: "systemPackages",
              position: (86, 17),
             },
            ],
           },
           to: List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "pkgs",
               position: (88, 7),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "shared-mime-info",
                 position: (88, 12),
                },
               ],
              },
              default: None,
             },
            ],
            position: (86, 34),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (91, 5),
             },
             Raw {
              content: "extraSetup",
              position: (91, 17),
             },
            ],
           },
           to: String {
            parts: [
             Raw {
              content: "if [ -w $out/share/mime ] && [ -d $out/share/mime/packages ]; then\n    XDG_DATA_DIRS=$out/share PKGSYSTEM_ENABLE_FSYNC=0 ",
              position: (92, 1),
             },
             Interpolation {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (93, 63),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "buildPackages",
                  position: (93, 68),
                 },
                 Raw {
                  content: "shared-mime-info",
                  position: (93, 82),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/update-mime-database -V $out/share/mime > /dev/null\nfi\n\nif [ -w $out/share/applications ]; then\n    ",
              position: (93, 99),
             },
             Interpolation {
              expression: PropertyAccess {
               expression: Variable {
                identifier: "pkgs",
                position: (97, 13),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "buildPackages",
                  position: (97, 18),
                 },
                 Raw {
                  content: "desktop-file-utils",
                  position: (97, 32),
                 },
                ],
               },
               default: None,
              },
             },
             Raw {
              content: "/bin/update-desktop-database $out/share/applications\nfi\n",
              position: (97, 51),
             },
            ],
            position: (91, 30),
           },
          },
         ],
         recursive: false,
         position: (71, 28),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (12, 1),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}