Function(
 Function {
  head: Destructured(
   FunctionHeadDestructured {
    ellipsis: false,
    identifier: None,
    arguments: [
     FunctionHeadDestructuredArgument {
      identifier: "lib",
      default: None,
     },
    ],
   },
  ),
  body: LetIn(
   LetIn {
    bindings: [
     Inherit(
      BindingInherit {
       from: Some(
        Identifier(
         Identifier {
          id: "lib",
          span: Span {
           start: Position {
            line: 4,
            column: 12,
           },
           end: Position {
            line: 4,
            column: 15,
           },
          },
         },
        ),
       ),
       attributes: [
        Raw(
         PartRaw {
          content: "throwIfNot",
          span: Span {
           start: Position {
            line: 4,
            column: 17,
           },
           end: Position {
            line: 4,
            column: 27,
           },
          },
         },
        ),
       ],
       span: Span {
        start: Position {
         line: 3,
         column: 4,
        },
        end: Position {
         line: 4,
         column: 28,
        },
       },
      },
     ),
    ],
    target: Map(
     Map {
      recursive: false,
      bindings: [
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "lazyDerivation",
            span: Span {
             start: Position {
              line: 53,
              column: 3,
             },
             end: Position {
              line: 53,
              column: 17,
             },
            },
           },
          ),
         ],
         to: Function(
          Function {
           head: Destructured(
            FunctionHeadDestructured {
             ellipsis: false,
             identifier: LeftAt(
              "args",
             ),
             arguments: [
              FunctionHeadDestructuredArgument {
               identifier: "derivation",
               default: None,
              },
              FunctionHeadDestructuredArgument {
               identifier: "meta",
               default: Some(
                Identifier(
                 Identifier {
                  id: "null",
                  span: Span {
                   start: Position {
                    line: 62,
                    column: 14,
                   },
                   end: Position {
                    line: 62,
                    column: 18,
                   },
                  },
                 },
                ),
               ),
              },
              FunctionHeadDestructuredArgument {
               identifier: "passthru",
               default: Some(
                Map(
                 Map {
                  recursive: false,
                  bindings: [],
                  span: Span {
                   start: Position {
                    line: 66,
                    column: 18,
                   },
                   end: Position {
                    line: 66,
                    column: 21,
                   },
                  },
                 },
                ),
               ),
              },
             ],
            },
           ),
           body: LetIn(
            LetIn {
             bindings: [
              KeyValue(
               BindingKeyValue {
                from: [
                 Raw(
                  PartRaw {
                   content: "checked",
                   span: Span {
                    start: Position {
                     line: 72,
                     column: 7,
                    },
                    end: Position {
                     line: 72,
                     column: 14,
                    },
                   },
                  },
                 ),
                ],
                to: FunctionApplication(
                 FunctionApplication {
                  function: Identifier(
                   Identifier {
                    id: "throwIfNot",
                    span: Span {
                     start: Position {
                      line: 73,
                      column: 9,
                     },
                     end: Position {
                      line: 73,
                      column: 19,
                     },
                    },
                   },
                  ),
                  arguments: [
                   BinaryOperation(
                    BinaryOperation {
                     left: PropertyAccess(
                      PropertyAccess {
                       expression: Identifier(
                        Identifier {
                         id: "derivation",
                         span: Span {
                          start: Position {
                           line: 73,
                           column: 21,
                          },
                          end: Position {
                           line: 73,
                           column: 31,
                          },
                         },
                        },
                       ),
                       attribute_path: [
                        Raw(
                         PartRaw {
                          content: "type",
                          span: Span {
                           start: Position {
                            line: 73,
                            column: 32,
                           },
                           end: Position {
                            line: 73,
                            column: 36,
                           },
                          },
                         },
                        ),
                       ],
                       default: Some(
                        Identifier(
                         Identifier {
                          id: "null",
                          span: Span {
                           start: Position {
                            line: 73,
                            column: 40,
                           },
                           end: Position {
                            line: 73,
                            column: 44,
                           },
                          },
                         },
                        ),
                       ),
                      },
                     ),
                     operator: EqualTo,
                     right: String(
                      String_ {
                       parts: [
                        Raw(
                         PartRaw {
                          content: "derivation",
                          span: Span {
                           start: Position {
                            line: 73,
                            column: 49,
                           },
                           end: Position {
                            line: 73,
                            column: 59,
                           },
                          },
                         },
                        ),
                       ],
                       span: Span {
                        start: Position {
                         line: 73,
                         column: 48,
                        },
                        end: Position {
                         line: 73,
                         column: 60,
                        },
                       },
                      },
                     ),
                    },
                   ),
                   String(
                    String_ {
                     parts: [
                      Raw(
                       PartRaw {
                        content: "lazySimpleDerivation: input must be a derivation.",
                        span: Span {
                         start: Position {
                          line: 74,
                          column: 12,
                         },
                         end: Position {
                          line: 74,
                          column: 61,
                         },
                        },
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 74,
                       column: 11,
                      },
                      end: Position {
                       line: 74,
                       column: 62,
                      },
                     },
                    },
                   ),
                   Identifier(
                    Identifier {
                     id: "throwIfNot",
                     span: Span {
                      start: Position {
                       line: 75,
                       column: 11,
                      },
                      end: Position {
                       line: 75,
                       column: 21,
                      },
                     },
                    },
                   ),
                   BinaryOperation(
                    BinaryOperation {
                     left: PropertyAccess(
                      PropertyAccess {
                       expression: Identifier(
                        Identifier {
                         id: "derivation",
                         span: Span {
                          start: Position {
                           line: 76,
                           column: 12,
                          },
                          end: Position {
                           line: 76,
                           column: 22,
                          },
                         },
                        },
                       ),
                       attribute_path: [
                        Raw(
                         PartRaw {
                          content: "outputs",
                          span: Span {
                           start: Position {
                            line: 76,
                            column: 23,
                           },
                           end: Position {
                            line: 76,
                            column: 30,
                           },
                          },
                         },
                        ),
                       ],
                       default: None,
                      },
                     ),
                     operator: EqualTo,
                     right: List(
                      List {
                       elements: [
                        String(
                         String_ {
                          parts: [
                           Raw(
                            PartRaw {
                             content: "out",
                             span: Span {
                              start: Position {
                               line: 76,
                               column: 37,
                              },
                              end: Position {
                               line: 76,
                               column: 40,
                              },
                             },
                            },
                           ),
                          ],
                          span: Span {
                           start: Position {
                            line: 76,
                            column: 36,
                           },
                           end: Position {
                            line: 76,
                            column: 41,
                           },
                          },
                         },
                        ),
                       ],
                       span: Span {
                        start: Position {
                         line: 76,
                         column: 34,
                        },
                        end: Position {
                         line: 76,
                         column: 43,
                        },
                       },
                      },
                     ),
                    },
                   ),
                   String(
                    String_ {
                     parts: [
                      Raw(
                       PartRaw {
                        content: "The derivation ",
                        span: Span {
                         start: Position {
                          line: 78,
                          column: 12,
                         },
                         end: Position {
                          line: 78,
                          column: 60,
                         },
                        },
                       },
                      ),
                      Interpolation(
                       PartInterpolation {
                        expression: PropertyAccess(
                         PropertyAccess {
                          expression: Identifier(
                           Identifier {
                            id: "derivation",
                            span: Span {
                             start: Position {
                              line: 78,
                              column: 29,
                             },
                             end: Position {
                              line: 78,
                              column: 39,
                             },
                            },
                           },
                          ),
                          attribute_path: [
                           Raw(
                            PartRaw {
                             content: "name",
                             span: Span {
                              start: Position {
                               line: 78,
                               column: 40,
                              },
                              end: Position {
                               line: 78,
                               column: 44,
                              },
                             },
                            },
                           ),
                          ],
                          default: Some(
                           String(
                            String_ {
                             parts: [
                              Raw(
                               PartRaw {
                                content: "<unknown>",
                                span: Span {
                                 start: Position {
                                  line: 78,
                                  column: 49,
                                 },
                                 end: Position {
                                  line: 78,
                                  column: 58,
                                 },
                                },
                               },
                              ),
                             ],
                             span: Span {
                              start: Position {
                               line: 78,
                               column: 48,
                              },
                              end: Position {
                               line: 78,
                               column: 59,
                              },
                             },
                            },
                           ),
                          ),
                         },
                        ),
                       },
                      ),
                      Raw(
                       PartRaw {
                        content: " has multiple outputs. This is not supported by lazySimpleDerivation yet. Support could be added, and be useful as long as the set of outputs is known in advance, without evaluating the actual derivation.",
                        span: Span {
                         start: Position {
                          line: 78,
                          column: 12,
                         },
                         end: Position {
                          line: 78,
                          column: 264,
                         },
                        },
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 78,
                       column: 11,
                      },
                      end: Position {
                       line: 78,
                       column: 265,
                      },
                     },
                    },
                   ),
                   Identifier(
                    Identifier {
                     id: "derivation",
                     span: Span {
                      start: Position {
                       line: 79,
                       column: 11,
                      },
                      end: Position {
                       line: 79,
                       column: 21,
                      },
                     },
                    },
                   ),
                  ],
                 },
                ),
               },
              ),
             ],
             target: BinaryOperation(
              BinaryOperation {
               left: Map(
                Map {
                 recursive: false,
                 bindings: [
                  KeyValue(
                   BindingKeyValue {
                    from: [
                     Raw(
                      PartRaw {
                       content: "type",
                       span: Span {
                        start: Position {
                         line: 90,
                         column: 7,
                        },
                        end: Position {
                         line: 90,
                         column: 11,
                        },
                       },
                      },
                     ),
                    ],
                    to: String(
                     String_ {
                      parts: [
                       Raw(
                        PartRaw {
                         content: "derivation",
                         span: Span {
                          start: Position {
                           line: 90,
                           column: 15,
                          },
                          end: Position {
                           line: 90,
                           column: 25,
                          },
                         },
                        },
                       ),
                      ],
                      span: Span {
                       start: Position {
                        line: 90,
                        column: 14,
                       },
                       end: Position {
                        line: 90,
                        column: 26,
                       },
                      },
                     },
                    ),
                   },
                  ),
                  Inherit(
                   BindingInherit {
                    from: Some(
                     Identifier(
                      Identifier {
                       id: "checked",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 16,
                        },
                        end: Position {
                         line: 95,
                         column: 23,
                        },
                       },
                      },
                     ),
                    ),
                    attributes: [
                     Raw(
                      PartRaw {
                       content: "outputs",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 25,
                        },
                        end: Position {
                         line: 95,
                         column: 32,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "out",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 33,
                        },
                        end: Position {
                         line: 95,
                         column: 36,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "outPath",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 37,
                        },
                        end: Position {
                         line: 95,
                         column: 44,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "outputName",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 45,
                        },
                        end: Position {
                         line: 95,
                         column: 55,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "drvPath",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 56,
                        },
                        end: Position {
                         line: 95,
                         column: 63,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "name",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 64,
                        },
                        end: Position {
                         line: 95,
                         column: 68,
                        },
                       },
                      },
                     ),
                     Raw(
                      PartRaw {
                       content: "system",
                       span: Span {
                        start: Position {
                         line: 95,
                         column: 69,
                        },
                        end: Position {
                         line: 95,
                         column: 75,
                        },
                       },
                      },
                     ),
                    ],
                    span: Span {
                     start: Position {
                      line: 81,
                      column: 6,
                     },
                     end: Position {
                      line: 95,
                      column: 76,
                     },
                    },
                   },
                  ),
                  KeyValue(
                   BindingKeyValue {
                    from: [
                     Raw(
                      PartRaw {
                       content: "meta",
                       span: Span {
                        start: Position {
                         line: 99,
                         column: 7,
                        },
                        end: Position {
                         line: 99,
                         column: 11,
                        },
                       },
                      },
                     ),
                    ],
                    to: PropertyAccess(
                     PropertyAccess {
                      expression: Identifier(
                       Identifier {
                        id: "args",
                        span: Span {
                         start: Position {
                          line: 99,
                          column: 14,
                         },
                         end: Position {
                          line: 99,
                          column: 18,
                         },
                        },
                       },
                      ),
                      attribute_path: [
                       Raw(
                        PartRaw {
                         content: "meta",
                         span: Span {
                          start: Position {
                           line: 99,
                           column: 19,
                          },
                          end: Position {
                           line: 99,
                           column: 23,
                          },
                         },
                        },
                       ),
                      ],
                      default: Some(
                       PropertyAccess(
                        PropertyAccess {
                         expression: Identifier(
                          Identifier {
                           id: "checked",
                           span: Span {
                            start: Position {
                             line: 99,
                             column: 27,
                            },
                            end: Position {
                             line: 99,
                             column: 34,
                            },
                           },
                          },
                         ),
                         attribute_path: [
                          Raw(
                           PartRaw {
                            content: "meta",
                            span: Span {
                             start: Position {
                              line: 99,
                              column: 35,
                             },
                             end: Position {
                              line: 99,
                              column: 39,
                             },
                            },
                           },
                          ),
                         ],
                         default: None,
                        },
                       ),
                      ),
                     },
                    ),
                   },
                  ),
                 ],
                 span: Span {
                  start: Position {
                   line: 81,
                   column: 5,
                  },
                  end: Position {
                   line: 100,
                   column: 6,
                  },
                 },
                },
               ),
               operator: Update,
               right: Identifier(
                Identifier {
                 id: "passthru",
                 span: Span {
                  start: Position {
                   line: 100,
                   column: 10,
                  },
                  end: Position {
                   line: 100,
                   column: 18,
                  },
                 },
                },
               ),
              },
             ),
             span: Span {
              start: Position {
               line: 68,
               column: 5,
              },
              end: Position {
               line: 100,
               column: 18,
              },
             },
            },
           ),
           span: Span {
            start: Position {
             line: 54,
             column: 5,
            },
            end: Position {
             line: 100,
             column: 18,
            },
           },
          },
         ),
        },
       ),
      ],
      span: Span {
       start: Position {
        line: 6,
        column: 1,
       },
       end: Position {
        line: 101,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 3,
      column: 1,
     },
     end: Position {
      line: 101,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 1,
    column: 1,
   },
   end: Position {
    line: 101,
    column: 2,
   },
  },
 },
)