Function(
 Function {
  head: Destructured(
   FunctionHeadDestructured {
    ellipsis: true,
    identifier: None,
    arguments: [
     FunctionHeadDestructuredArgument {
      identifier: "config",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "hostPkgs",
      default: None,
     },
     FunctionHeadDestructuredArgument {
      identifier: "lib",
      default: None,
     },
    ],
   },
  ),
  body: LetIn(
   LetIn {
    bindings: [
     Inherit(
      BindingInherit {
       from: Some(
        Identifier(
         Identifier {
          id: "lib",
          span: Span {
           start: Position {
            line: 3,
            column: 12,
           },
           end: Position {
            line: 3,
            column: 15,
           },
          },
         },
        ),
       ),
       attributes: [
        Raw(
         PartRaw {
          content: "types",
          span: Span {
           start: Position {
            line: 3,
            column: 17,
           },
           end: Position {
            line: 3,
            column: 22,
           },
          },
         },
        ),
        Raw(
         PartRaw {
          content: "mkOption",
          span: Span {
           start: Position {
            line: 3,
            column: 23,
           },
           end: Position {
            line: 3,
            column: 31,
           },
          },
         },
        ),
        Raw(
         PartRaw {
          content: "mdDoc",
          span: Span {
           start: Position {
            line: 3,
            column: 32,
           },
           end: Position {
            line: 3,
            column: 37,
           },
          },
         },
        ),
       ],
       span: Span {
        start: Position {
         line: 2,
         column: 4,
        },
        end: Position {
         line: 3,
         column: 38,
        },
       },
      },
     ),
    ],
    target: Map(
     Map {
      recursive: false,
      bindings: [
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "options",
            span: Span {
             start: Position {
              line: 6,
              column: 3,
             },
             end: Position {
              line: 6,
              column: 10,
             },
            },
           },
          ),
         ],
         to: Map(
          Map {
           recursive: false,
           bindings: [
            KeyValue(
             BindingKeyValue {
              from: [
               Raw(
                PartRaw {
                 content: "passthru",
                 span: Span {
                  start: Position {
                   line: 7,
                   column: 5,
                  },
                  end: Position {
                   line: 7,
                   column: 13,
                  },
                 },
                },
               ),
              ],
              to: FunctionApplication(
               FunctionApplication {
                function: Identifier(
                 Identifier {
                  id: "mkOption",
                  span: Span {
                   start: Position {
                    line: 7,
                    column: 16,
                   },
                   end: Position {
                    line: 7,
                    column: 24,
                   },
                  },
                 },
                ),
                arguments: [
                 Map(
                  Map {
                   recursive: false,
                   bindings: [
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "type",
                         span: Span {
                          start: Position {
                           line: 8,
                           column: 7,
                          },
                          end: Position {
                           line: 8,
                           column: 11,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: PropertyAccess(
                         PropertyAccess {
                          expression: Identifier(
                           Identifier {
                            id: "types",
                            span: Span {
                             start: Position {
                              line: 8,
                              column: 14,
                             },
                             end: Position {
                              line: 8,
                              column: 19,
                             },
                            },
                           },
                          ),
                          attribute_path: [
                           Raw(
                            PartRaw {
                             content: "lazyAttrsOf",
                             span: Span {
                              start: Position {
                               line: 8,
                               column: 20,
                              },
                              end: Position {
                               line: 8,
                               column: 31,
                              },
                             },
                            },
                           ),
                          ],
                          default: None,
                         },
                        ),
                        arguments: [
                         PropertyAccess(
                          PropertyAccess {
                           expression: Identifier(
                            Identifier {
                             id: "types",
                             span: Span {
                              start: Position {
                               line: 8,
                               column: 32,
                              },
                              end: Position {
                               line: 8,
                               column: 37,
                              },
                             },
                            },
                           ),
                           attribute_path: [
                            Raw(
                             PartRaw {
                              content: "raw",
                              span: Span {
                               start: Position {
                                line: 8,
                                column: 38,
                               },
                               end: Position {
                                line: 8,
                                column: 41,
                               },
                              },
                             },
                            ),
                           ],
                           default: None,
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "description",
                         span: Span {
                          start: Position {
                           line: 9,
                           column: 7,
                          },
                          end: Position {
                           line: 9,
                           column: 18,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: Identifier(
                         Identifier {
                          id: "mdDoc",
                          span: Span {
                           start: Position {
                            line: 9,
                            column: 21,
                           },
                           end: Position {
                            line: 9,
                            column: 26,
                           },
                          },
                         },
                        ),
                        arguments: [
                         IndentedString(
                          IndentedString {
                           parts: [
                            Raw(
                             PartRaw {
                              content: "Attributes to add to the returned derivations,\nwhich are not necessarily part of the build.\n\nThis is a bit like doing `drv // { myAttr = true; }` (which would be lost by `overrideAttrs`).\nIt does not change the actual derivation, but adds the attribute nonetheless, so that\nconsumers of what would be `drv` have more information.\n",
                              span: Span {
                               start: Position {
                                line: 10,
                                column: 1,
                               },
                               end: Position {
                                line: 16,
                                column: 7,
                               },
                              },
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 9,
                             column: 27,
                            },
                            end: Position {
                             line: 16,
                             column: 9,
                            },
                           },
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 7,
                     column: 25,
                    },
                    end: Position {
                     line: 17,
                     column: 6,
                    },
                   },
                  },
                 ),
                ],
               },
              ),
             },
            ),
            KeyValue(
             BindingKeyValue {
              from: [
               Raw(
                PartRaw {
                 content: "test",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 5,
                  },
                  end: Position {
                   line: 19,
                   column: 9,
                  },
                 },
                },
               ),
              ],
              to: FunctionApplication(
               FunctionApplication {
                function: Identifier(
                 Identifier {
                  id: "mkOption",
                  span: Span {
                   start: Position {
                    line: 19,
                    column: 12,
                   },
                   end: Position {
                    line: 19,
                    column: 20,
                   },
                  },
                 },
                ),
                arguments: [
                 Map(
                  Map {
                   recursive: false,
                   bindings: [
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "type",
                         span: Span {
                          start: Position {
                           line: 20,
                           column: 7,
                          },
                          end: Position {
                           line: 20,
                           column: 11,
                          },
                         },
                        },
                       ),
                      ],
                      to: PropertyAccess(
                       PropertyAccess {
                        expression: Identifier(
                         Identifier {
                          id: "types",
                          span: Span {
                           start: Position {
                            line: 20,
                            column: 14,
                           },
                           end: Position {
                            line: 20,
                            column: 19,
                           },
                          },
                         },
                        ),
                        attribute_path: [
                         Raw(
                          PartRaw {
                           content: "package",
                           span: Span {
                            start: Position {
                             line: 20,
                             column: 20,
                            },
                            end: Position {
                             line: 20,
                             column: 27,
                            },
                           },
                          },
                         ),
                        ],
                        default: None,
                       },
                      ),
                     },
                    ),
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "description",
                         span: Span {
                          start: Position {
                           line: 22,
                           column: 7,
                          },
                          end: Position {
                           line: 22,
                           column: 18,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: Identifier(
                         Identifier {
                          id: "mdDoc",
                          span: Span {
                           start: Position {
                            line: 22,
                            column: 21,
                           },
                           end: Position {
                            line: 22,
                            column: 26,
                           },
                          },
                         },
                        ),
                        arguments: [
                         IndentedString(
                          IndentedString {
                           parts: [
                            Raw(
                             PartRaw {
                              content: "Derivation that runs the test as its \"build\" process.\n\nThis implies that NixOS tests run isolated from the network, making them\nmore dependable.\n",
                              span: Span {
                               start: Position {
                                line: 23,
                                column: 1,
                               },
                               end: Position {
                                line: 27,
                                column: 7,
                               },
                              },
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 22,
                             column: 27,
                            },
                            end: Position {
                             line: 27,
                             column: 9,
                            },
                           },
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 19,
                     column: 21,
                    },
                    end: Position {
                     line: 28,
                     column: 6,
                    },
                   },
                  },
                 ),
                ],
               },
              ),
             },
            ),
           ],
           span: Span {
            start: Position {
             line: 6,
             column: 13,
            },
            end: Position {
             line: 29,
             column: 4,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "config",
            span: Span {
             start: Position {
              line: 31,
              column: 3,
             },
             end: Position {
              line: 31,
              column: 9,
             },
            },
           },
          ),
         ],
         to: Map(
          Map {
           recursive: false,
           bindings: [
            KeyValue(
             BindingKeyValue {
              from: [
               Raw(
                PartRaw {
                 content: "test",
                 span: Span {
                  start: Position {
                   line: 32,
                   column: 5,
                  },
                  end: Position {
                   line: 32,
                   column: 9,
                  },
                 },
                },
               ),
              ],
              to: FunctionApplication(
               FunctionApplication {
                function: PropertyAccess(
                 PropertyAccess {
                  expression: Identifier(
                   Identifier {
                    id: "lib",
                    span: Span {
                     start: Position {
                      line: 32,
                      column: 12,
                     },
                     end: Position {
                      line: 32,
                      column: 15,
                     },
                    },
                   },
                  ),
                  attribute_path: [
                   Raw(
                    PartRaw {
                     content: "lazyDerivation",
                     span: Span {
                      start: Position {
                       line: 32,
                       column: 16,
                      },
                      end: Position {
                       line: 32,
                       column: 30,
                      },
                     },
                    },
                   ),
                  ],
                  default: None,
                 },
                ),
                arguments: [
                 Map(
                  Map {
                   recursive: false,
                   bindings: [
                    KeyValue(
                     BindingKeyValue {
                      from: [
                       Raw(
                        PartRaw {
                         content: "derivation",
                         span: Span {
                          start: Position {
                           line: 33,
                           column: 7,
                          },
                          end: Position {
                           line: 33,
                           column: 17,
                          },
                         },
                        },
                       ),
                      ],
                      to: FunctionApplication(
                       FunctionApplication {
                        function: PropertyAccess(
                         PropertyAccess {
                          expression: Identifier(
                           Identifier {
                            id: "hostPkgs",
                            span: Span {
                             start: Position {
                              line: 33,
                              column: 20,
                             },
                             end: Position {
                              line: 33,
                              column: 28,
                             },
                            },
                           },
                          ),
                          attribute_path: [
                           Raw(
                            PartRaw {
                             content: "stdenv",
                             span: Span {
                              start: Position {
                               line: 33,
                               column: 29,
                              },
                              end: Position {
                               line: 33,
                               column: 35,
                              },
                             },
                            },
                           ),
                           Raw(
                            PartRaw {
                             content: "mkDerivation",
                             span: Span {
                              start: Position {
                               line: 33,
                               column: 36,
                              },
                              end: Position {
                               line: 33,
                               column: 48,
                              },
                             },
                            },
                           ),
                          ],
                          default: None,
                         },
                        ),
                        arguments: [
                         Map(
                          Map {
                           recursive: false,
                           bindings: [
                            KeyValue(
                             BindingKeyValue {
                              from: [
                               Raw(
                                PartRaw {
                                 content: "name",
                                 span: Span {
                                  start: Position {
                                   line: 34,
                                   column: 9,
                                  },
                                  end: Position {
                                   line: 34,
                                   column: 13,
                                  },
                                 },
                                },
                               ),
                              ],
                              to: String(
                               String_ {
                                parts: [
                                 Raw(
                                  PartRaw {
                                   content: "vm-test-run-",
                                   span: Span {
                                    start: Position {
                                     line: 34,
                                     column: 17,
                                    },
                                    end: Position {
                                     line: 34,
                                     column: 43,
                                    },
                                   },
                                  },
                                 ),
                                 Interpolation(
                                  PartInterpolation {
                                   expression: PropertyAccess(
                                    PropertyAccess {
                                     expression: Identifier(
                                      Identifier {
                                       id: "config",
                                       span: Span {
                                        start: Position {
                                         line: 34,
                                         column: 31,
                                        },
                                        end: Position {
                                         line: 34,
                                         column: 37,
                                        },
                                       },
                                      },
                                     ),
                                     attribute_path: [
                                      Raw(
                                       PartRaw {
                                        content: "name",
                                        span: Span {
                                         start: Position {
                                          line: 34,
                                          column: 38,
                                         },
                                         end: Position {
                                          line: 34,
                                          column: 42,
                                         },
                                        },
                                       },
                                      ),
                                     ],
                                     default: None,
                                    },
                                   ),
                                  },
                                 ),
                                ],
                                span: Span {
                                 start: Position {
                                  line: 34,
                                  column: 16,
                                 },
                                 end: Position {
                                  line: 34,
                                  column: 44,
                                 },
                                },
                               },
                              ),
                             },
                            ),
                            KeyValue(
                             BindingKeyValue {
                              from: [
                               Raw(
                                PartRaw {
                                 content: "requiredSystemFeatures",
                                 span: Span {
                                  start: Position {
                                   line: 36,
                                   column: 9,
                                  },
                                  end: Position {
                                   line: 36,
                                   column: 31,
                                  },
                                 },
                                },
                               ),
                              ],
                              to: List(
                               List {
                                elements: [
                                 String(
                                  String_ {
                                   parts: [
                                    Raw(
                                     PartRaw {
                                      content: "kvm",
                                      span: Span {
                                       start: Position {
                                        line: 36,
                                        column: 37,
                                       },
                                       end: Position {
                                        line: 36,
                                        column: 40,
                                       },
                                      },
                                     },
                                    ),
                                   ],
                                   span: Span {
                                    start: Position {
                                     line: 36,
                                     column: 36,
                                    },
                                    end: Position {
                                     line: 36,
                                     column: 41,
                                    },
                                   },
                                  },
                                 ),
                                 String(
                                  String_ {
                                   parts: [
                                    Raw(
                                     PartRaw {
                                      content: "nixos-test",
                                      span: Span {
                                       start: Position {
                                        line: 36,
                                        column: 43,
                                       },
                                       end: Position {
                                        line: 36,
                                        column: 53,
                                       },
                                      },
                                     },
                                    ),
                                   ],
                                   span: Span {
                                    start: Position {
                                     line: 36,
                                     column: 42,
                                    },
                                    end: Position {
                                     line: 36,
                                     column: 54,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                span: Span {
                                 start: Position {
                                  line: 36,
                                  column: 34,
                                 },
                                 end: Position {
                                  line: 36,
                                  column: 56,
                                 },
                                },
                               },
                              ),
                             },
                            ),
                            KeyValue(
                             BindingKeyValue {
                              from: [
                               Raw(
                                PartRaw {
                                 content: "buildCommand",
                                 span: Span {
                                  start: Position {
                                   line: 38,
                                   column: 9,
                                  },
                                  end: Position {
                                   line: 38,
                                   column: 21,
                                  },
                                 },
                                },
                               ),
                              ],
                              to: IndentedString(
                               IndentedString {
                                parts: [
                                 Raw(
                                  PartRaw {
                                   content: "mkdir -p $out\n\n# effectively mute the XMLLogger\nexport LOGFILE=/dev/null\n\n",
                                   span: Span {
                                    start: Position {
                                     line: 39,
                                     column: 1,
                                    },
                                    end: Position {
                                     line: 44,
                                     column: 11,
                                    },
                                   },
                                  },
                                 ),
                                 Interpolation(
                                  PartInterpolation {
                                   expression: PropertyAccess(
                                    PropertyAccess {
                                     expression: Identifier(
                                      Identifier {
                                       id: "config",
                                       span: Span {
                                        start: Position {
                                         line: 44,
                                         column: 13,
                                        },
                                        end: Position {
                                         line: 44,
                                         column: 19,
                                        },
                                       },
                                      },
                                     ),
                                     attribute_path: [
                                      Raw(
                                       PartRaw {
                                        content: "driver",
                                        span: Span {
                                         start: Position {
                                          line: 44,
                                          column: 20,
                                         },
                                         end: Position {
                                          line: 44,
                                          column: 26,
                                         },
                                        },
                                       },
                                      ),
                                     ],
                                     default: None,
                                    },
                                   ),
                                  },
                                 ),
                                 Raw(
                                  PartRaw {
                                   content: "/bin/nixos-test-driver -o $out\n",
                                   span: Span {
                                    start: Position {
                                     line: 39,
                                     column: 1,
                                    },
                                    end: Position {
                                     line: 45,
                                     column: 9,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                span: Span {
                                 start: Position {
                                  line: 38,
                                  column: 24,
                                 },
                                 end: Position {
                                  line: 45,
                                  column: 11,
                                 },
                                },
                               },
                              ),
                             },
                            ),
                            KeyValue(
                             BindingKeyValue {
                              from: [
                               Raw(
                                PartRaw {
                                 content: "passthru",
                                 span: Span {
                                  start: Position {
                                   line: 47,
                                   column: 9,
                                  },
                                  end: Position {
                                   line: 47,
                                   column: 17,
                                  },
                                 },
                                },
                               ),
                              ],
                              to: PropertyAccess(
                               PropertyAccess {
                                expression: Identifier(
                                 Identifier {
                                  id: "config",
                                  span: Span {
                                   start: Position {
                                    line: 47,
                                    column: 20,
                                   },
                                   end: Position {
                                    line: 47,
                                    column: 26,
                                   },
                                  },
                                 },
                                ),
                                attribute_path: [
                                 Raw(
                                  PartRaw {
                                   content: "passthru",
                                   span: Span {
                                    start: Position {
                                     line: 47,
                                     column: 27,
                                    },
                                    end: Position {
                                     line: 47,
                                     column: 35,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                default: None,
                               },
                              ),
                             },
                            ),
                            KeyValue(
                             BindingKeyValue {
                              from: [
                               Raw(
                                PartRaw {
                                 content: "meta",
                                 span: Span {
                                  start: Position {
                                   line: 49,
                                   column: 9,
                                  },
                                  end: Position {
                                   line: 49,
                                   column: 13,
                                  },
                                 },
                                },
                               ),
                              ],
                              to: PropertyAccess(
                               PropertyAccess {
                                expression: Identifier(
                                 Identifier {
                                  id: "config",
                                  span: Span {
                                   start: Position {
                                    line: 49,
                                    column: 16,
                                   },
                                   end: Position {
                                    line: 49,
                                    column: 22,
                                   },
                                  },
                                 },
                                ),
                                attribute_path: [
                                 Raw(
                                  PartRaw {
                                   content: "meta",
                                   span: Span {
                                    start: Position {
                                     line: 49,
                                     column: 23,
                                    },
                                    end: Position {
                                     line: 49,
                                     column: 27,
                                    },
                                   },
                                  },
                                 ),
                                ],
                                default: None,
                               },
                              ),
                             },
                            ),
                           ],
                           span: Span {
                            start: Position {
                             line: 33,
                             column: 49,
                            },
                            end: Position {
                             line: 50,
                             column: 8,
                            },
                           },
                          },
                         ),
                        ],
                       },
                      ),
                     },
                    ),
                    Inherit(
                     BindingInherit {
                      from: Some(
                       Identifier(
                        Identifier {
                         id: "config",
                         span: Span {
                          start: Position {
                           line: 51,
                           column: 16,
                          },
                          end: Position {
                           line: 51,
                           column: 22,
                          },
                         },
                        },
                       ),
                      ),
                      attributes: [
                       Raw(
                        PartRaw {
                         content: "passthru",
                         span: Span {
                          start: Position {
                           line: 51,
                           column: 24,
                          },
                          end: Position {
                           line: 51,
                           column: 32,
                          },
                         },
                        },
                       ),
                       Raw(
                        PartRaw {
                         content: "meta",
                         span: Span {
                          start: Position {
                           line: 51,
                           column: 33,
                          },
                          end: Position {
                           line: 51,
                           column: 37,
                          },
                         },
                        },
                       ),
                      ],
                      span: Span {
                       start: Position {
                        line: 32,
                        column: 32,
                       },
                       end: Position {
                        line: 51,
                        column: 38,
                       },
                      },
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 32,
                     column: 31,
                    },
                    end: Position {
                     line: 52,
                     column: 6,
                    },
                   },
                  },
                 ),
                ],
               },
              ),
             },
            ),
            KeyValue(
             BindingKeyValue {
              from: [
               Raw(
                PartRaw {
                 content: "passthru",
                 span: Span {
                  start: Position {
                   line: 55,
                   column: 5,
                  },
                  end: Position {
                   line: 55,
                   column: 13,
                  },
                 },
                },
               ),
               Raw(
                PartRaw {
                 content: "config",
                 span: Span {
                  start: Position {
                   line: 55,
                   column: 14,
                  },
                  end: Position {
                   line: 55,
                   column: 20,
                  },
                 },
                },
               ),
              ],
              to: Identifier(
               Identifier {
                id: "config",
                span: Span {
                 start: Position {
                  line: 55,
                  column: 23,
                 },
                 end: Position {
                  line: 55,
                  column: 29,
                 },
                },
               },
              ),
             },
            ),
           ],
           span: Span {
            start: Position {
             line: 31,
             column: 12,
            },
            end: Position {
             line: 56,
             column: 4,
            },
           },
          },
         ),
        },
       ),
      ],
      span: Span {
       start: Position {
        line: 5,
        column: 1,
       },
       end: Position {
        line: 57,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 2,
      column: 1,
     },
     end: Position {
      line: 57,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 1,
    column: 1,
   },
   end: Position {
    line: 57,
    column: 2,
   },
  },
 },
)