Function(
 Function {
  head: Destructured(
   FunctionHeadDestructured {
    ellipsis: true,
    identifier: None,
    arguments: [
     FunctionHeadDestructuredArgument {
      identifier: "config",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "lib",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "pkgs",
      default: None,
     },
    ],
   },
  ),
  body: With(
   With {
    expression: Identifier(
     Identifier {
      id: "lib",
      span: Span {
       start: Position {
        line: 3,
        column: 6,
       },
       end: Position {
        line: 3,
        column: 9,
       },
      },
     },
    ),
    target: Map(
     Map {
      recursive: false,
      bindings: [
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "options",
            span: Span {
             start: Position {
              line: 5,
              column: 3,
             },
             end: Position {
              line: 5,
              column: 10,
             },
            },
           },
          ),
         ],
         to: Map(
          Map {
           recursive: false,
           bindings: [
            KeyValue(
             BindingKeyValue {
              from: [
               Raw(
                PartRaw {
                 content: "gtk",
                 span: Span {
                  start: Position {
                   line: 6,
                   column: 5,
                  },
                  end: Position {
                   line: 6,
                   column: 8,
                  },
                 },
                },
               ),
               Raw(
                PartRaw {
                 content: "iconCache",
                 span: Span {
                  start: Position {
                   line: 6,
                   column: 9,
                  },
                  end: Position {
                   line: 6,
                   column: 18,
                  },
                 },
                },
               ),
               Raw(
                PartRaw {
                 content: "enable",
                 span: Span {
                  start: Position {
                   line: 6,
                   column: 19,
                  },
                  end: Position {
                   line: 6,
                   column: 25,
                  },
                 },
                },
               ),
              ],
              to: FunctionApplication(
               FunctionApplication {
                function: Identifier(
                 Identifier {
                  id: "mkOption",
                  span: Span {
                   start: Position {
                    line: 6,
                    column: 28,
                   },
                   end: Position {
                    line: 6,
                    column: 36,
                   },
                  },
                 },
                ),
                arguments: [
                 Map(
                  Map {
                   recursive: false,
                   bindings: [
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "type",
                         span: Span {
                          start: Position {
                           line: 7,
                           column: 7,
                          },
                          end: Position {
                           line: 7,
                           column: 11,
                          },
                         },
                        },
                       ),
                      ],
                      to: PropertyAccess(
                       PropertyAccess {
                        expression: Identifier(
                         Identifier {
                          id: "types",
                          span: Span {
                           start: Position {
                            line: 7,
                            column: 14,
                           },
                           end: Position {
                            line: 7,
                            column: 19,
                           },
                          },
                         },
                        ),
                        attribute_path: [
                         Raw(
                          PartRaw {
                           content: "bool",
                           span: Span {
                            start: Position {
                             line: 7,
                             column: 20,
                            },
                            end: Position {
                             line: 7,
                             column: 24,
                            },
                           },
                          },
                         ),
                        ],
                        default: None,
                       },
                      ),
                     },
                    ),
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "default",
                         span: Span {
                          start: Position {
                           line: 8,
                           column: 7,
                          },
                          end: Position {
                           line: 8,
                           column: 14,
                          },
                         },
                        },
                       ),
                      ],
                      to: PropertyAccess(
                       PropertyAccess {
                        expression: Identifier(
                         Identifier {
                          id: "config",
                          span: Span {
                           start: Position {
                            line: 8,
                            column: 17,
                           },
                           end: Position {
                            line: 8,
                            column: 23,
                           },
                          },
                         },
                        ),
                        attribute_path: [
                         Raw(
                          PartRaw {
                           content: "services",
                           span: Span {
                            start: Position {
                             line: 8,
                             column: 24,
                            },
                            end: Position {
                             line: 8,
                             column: 32,
                            },
                           },
                          },
                         ),
                         Raw(
                          PartRaw {
                           content: "xserver",
                           span: Span {
                            start: Position {
                             line: 8,
                             column: 33,
                            },
                            end: Position {
                             line: 8,
                             column: 40,
                            },
                           },
                          },
                         ),
                         Raw(
                          PartRaw {
                           content: "enable",
                           span: Span {
                            start: Position {
                             line: 8,
                             column: 41,
                            },
                            end: Position {
                             line: 8,
                             column: 47,
                            },
                           },
                          },
                         ),
                        ],
                        default: None,
                       },
                      ),
                     },
                    ),
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "defaultText",
                         span: Span {
                          start: Position {
                           line: 9,
                           column: 7,
                          },
                          end: Position {
                           line: 9,
                           column: 18,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: Identifier(
                         Identifier {
                          id: "literalExpression",
                          span: Span {
                           start: Position {
                            line: 9,
                            column: 21,
                           },
                           end: Position {
                            line: 9,
                            column: 38,
                           },
                          },
                         },
                        ),
                        arguments: [
                         String(
                          String_ {
                           parts: [
                            Raw(
                             PartRaw {
                              content: "config.services.xserver.enable",
                              span: Span {
                               start: Position {
                                line: 9,
                                column: 40,
                               },
                               end: Position {
                                line: 9,
                                column: 70,
                               },
                              },
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 9,
                             column: 39,
                            },
                            end: Position {
                             line: 9,
                             column: 71,
                            },
                           },
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "description",
                         span: Span {
                          start: Position {
                           line: 10,
                           column: 7,
                          },
                          end: Position {
                           line: 10,
                           column: 18,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: PropertyAccess(
                         PropertyAccess {
                          expression: Identifier(
                           Identifier {
                            id: "lib",
                            span: Span {
                             start: Position {
                              line: 10,
                              column: 21,
                             },
                             end: Position {
                              line: 10,
                              column: 24,
                             },
                            },
                           },
                          ),
                          attribute_path: [
                           Raw(
                            PartRaw {
                             content: "mdDoc",
                             span: Span {
                              start: Position {
                               line: 10,
                               column: 25,
                              },
                              end: Position {
                               line: 10,
                               column: 30,
                              },
                             },
                            },
                           ),
                          ],
                          default: None,
                         },
                        ),
                        arguments: [
                         IndentedString(
                          IndentedString {
                           parts: [
                            Raw(
                             PartRaw {
                              content: "Whether to build icon theme caches for GTK applications.\n",
                              span: Span {
                               start: Position {
                                line: 11,
                                column: 1,
                               },
                               end: Position {
                                line: 12,
                                column: 7,
                               },
                              },
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 10,
                             column: 31,
                            },
                            end: Position {
                             line: 12,
                             column: 9,
                            },
                           },
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 6,
                     column: 37,
                    },
                    end: Position {
                     line: 13,
                     column: 6,
                    },
                   },
                  },
                 ),
                ],
               },
              ),
             },
            ),
           ],
           span: Span {
            start: Position {
             line: 5,
             column: 13,
            },
            end: Position {
             line: 14,
             column: 4,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "config",
            span: Span {
             start: Position {
              line: 16,
              column: 3,
             },
             end: Position {
              line: 16,
              column: 9,
             },
            },
           },
          ),
         ],
         to: FunctionApplication(
          FunctionApplication {
           function: Identifier(
            Identifier {
             id: "mkIf",
             span: Span {
              start: Position {
               line: 16,
               column: 12,
              },
              end: Position {
               line: 16,
               column: 16,
              },
             },
            },
           ),
           arguments: [
            PropertyAccess(
             PropertyAccess {
              expression: Identifier(
               Identifier {
                id: "config",
                span: Span {
                 start: Position {
                  line: 16,
                  column: 17,
                 },
                 end: Position {
                  line: 16,
                  column: 23,
                 },
                },
               },
              ),
              attribute_path: [
               Raw(
                PartRaw {
                 content: "gtk",
                 span: Span {
                  start: Position {
                   line: 16,
                   column: 24,
                  },
                  end: Position {
                   line: 16,
                   column: 27,
                  },
                 },
                },
               ),
               Raw(
                PartRaw {
                 content: "iconCache",
                 span: Span {
                  start: Position {
                   line: 16,
                   column: 28,
                  },
                  end: Position {
                   line: 16,
                   column: 37,
                  },
                 },
                },
               ),
               Raw(
                PartRaw {
                 content: "enable",
                 span: Span {
                  start: Position {
                   line: 16,
                   column: 38,
                  },
                  end: Position {
                   line: 16,
                   column: 44,
                  },
                 },
                },
               ),
              ],
              default: None,
             },
            ),
            Map(
             Map {
              recursive: false,
              bindings: [
               KeyValue(
                BindingKeyValue {
                 from: [
                  Raw(
                   PartRaw {
                    content: "environment",
                    span: Span {
                     start: Position {
                      line: 53,
                      column: 5,
                     },
                     end: Position {
                      line: 53,
                      column: 16,
                     },
                    },
                   },
                  ),
                  Raw(
                   PartRaw {
                    content: "extraSetup",
                    span: Span {
                     start: Position {
                      line: 53,
                      column: 17,
                     },
                     end: Position {
                      line: 53,
                      column: 27,
                     },
                    },
                   },
                  ),
                 ],
                 to: IndentedString(
                  IndentedString {
                   parts: [
                    Raw(
                     PartRaw {
                      content: "# For each icon theme directory ...\n\nfind $out/share/icons -mindepth 1 -maxdepth 1 -print0 | while read -d ",
                      span: Span {
                       start: Position {
                        line: 54,
                        column: 1,
                       },
                       end: Position {
                        line: 56,
                        column: 77,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "$",
                      span: Span {
                       start: Position {
                        line: 54,
                        column: 1,
                       },
                       end: Position {
                        line: 56,
                        column: 78,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "'\\0' themedir\ndo\n\n  # In order to build the cache, the theme dir should be\n  # writable. When the theme dir is a symbolic link to somewhere\n  # in the nix store it is not writable and it means that only\n  # one package is contributing to the theme. If it already has\n  # a cache, no rebuild is needed. Otherwise a cache has to be\n  # built, and to be able to do that we first remove the\n  # symbolic link and make a directory, and then make symbolic\n  # links from the original directory into the new one.\n\n  if [ ! -w \"$themedir\" -a -L \"$themedir\" -a ! -r \"$themedir\"/icon-theme.cache ]; then\n    name=$(basename \"$themedir\")\n    path=$(readlink -f \"$themedir\")\n    rm \"$themedir\"\n    mkdir -p \"$themedir\"\n    ln -s \"$path\"/* \"$themedir\"/\n  fi\n\n  # (Re)build the cache if the theme dir is writable, replacing any\n  # existing cache for the theme\n\n  if [ -w \"$themedir\" ]; then\n    rm -f \"$themedir\"/icon-theme.cache\n    ",
                      span: Span {
                       start: Position {
                        line: 54,
                        column: 1,
                       },
                       end: Position {
                        line: 81,
                        column: 11,
                       },
                      },
                     },
                    ),
                    Interpolation(
                     PartInterpolation {
                      expression: PropertyAccess(
                       PropertyAccess {
                        expression: Identifier(
                         Identifier {
                          id: "pkgs",
                          span: Span {
                           start: Position {
                            line: 81,
                            column: 13,
                           },
                           end: Position {
                            line: 81,
                            column: 17,
                           },
                          },
                         },
                        ),
                        attribute_path: [
                         Raw(
                          PartRaw {
                           content: "buildPackages",
                           span: Span {
                            start: Position {
                             line: 81,
                             column: 18,
                            },
                            end: Position {
                             line: 81,
                             column: 31,
                            },
                           },
                          },
                         ),
                         Raw(
                          PartRaw {
                           content: "gtk3",
                           span: Span {
                            start: Position {
                             line: 81,
                             column: 32,
                            },
                            end: Position {
                             line: 81,
                             column: 36,
                            },
                           },
                          },
                         ),
                         Raw(
                          PartRaw {
                           content: "out",
                           span: Span {
                            start: Position {
                             line: 81,
                             column: 37,
                            },
                            end: Position {
                             line: 81,
                             column: 40,
                            },
                           },
                          },
                         ),
                        ],
                        default: None,
                       },
                      ),
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "/bin/gtk-update-icon-cache --ignore-theme-index \"$themedir\"\n  fi\ndone\n",
                      span: Span {
                       start: Position {
                        line: 54,
                        column: 1,
                       },
                       end: Position {
                        line: 84,
                        column: 5,
                       },
                      },
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 53,
                     column: 30,
                    },
                    end: Position {
                     line: 84,
                     column: 7,
                    },
                   },
                  },
                 ),
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 16,
                column: 45,
               },
               end: Position {
                line: 85,
                column: 4,
               },
              },
             },
            ),
           ],
          },
         ),
        },
       ),
      ],
      span: Span {
       start: Position {
        line: 4,
        column: 1,
       },
       end: Position {
        line: 87,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 3,
      column: 1,
     },
     end: Position {
      line: 87,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 1,
    column: 1,
   },
   end: Position {
    line: 87,
    column: 2,
   },
  },
 },
)