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: 5,
        column: 6,
       },
       end: Position {
        line: 5,
        column: 9,
       },
      },
     },
    ),
    target: LetIn(
     LetIn {
      bindings: [
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "cfg",
            span: Span {
             start: Position {
              line: 8,
              column: 3,
             },
             end: Position {
              line: 8,
              column: 6,
             },
            },
           },
          ),
         ],
         to: PropertyAccess(
          PropertyAccess {
           expression: Identifier(
            Identifier {
             id: "config",
             span: Span {
              start: Position {
               line: 8,
               column: 10,
              },
              end: Position {
               line: 8,
               column: 16,
              },
             },
            },
           ),
           attribute_path: [
            Raw(
             PartRaw {
              content: "programs",
              span: Span {
               start: Position {
                line: 8,
                column: 17,
               },
               end: Position {
                line: 8,
                column: 25,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "mininet",
              span: Span {
               start: Position {
                line: 8,
                column: 26,
               },
               end: Position {
                line: 8,
                column: 33,
               },
              },
             },
            ),
           ],
           default: None,
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "generatedPath",
            span: Span {
             start: Position {
              line: 10,
              column: 3,
             },
             end: Position {
              line: 10,
              column: 16,
             },
            },
           },
          ),
         ],
         to: With(
          With {
           expression: Identifier(
            Identifier {
             id: "pkgs",
             span: Span {
              start: Position {
               line: 10,
               column: 24,
              },
              end: Position {
               line: 10,
               column: 28,
              },
             },
            },
           ),
           target: FunctionApplication(
            FunctionApplication {
             function: Identifier(
              Identifier {
               id: "makeSearchPath",
               span: Span {
                start: Position {
                 line: 10,
                 column: 30,
                },
                end: Position {
                 line: 10,
                 column: 44,
                },
               },
              },
             ),
             arguments: [
              String(
               String_ {
                parts: [
                 Raw(
                  PartRaw {
                   content: "bin",
                   span: Span {
                    start: Position {
                     line: 10,
                     column: 46,
                    },
                    end: Position {
                     line: 10,
                     column: 49,
                    },
                   },
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 10,
                  column: 45,
                 },
                 end: Position {
                  line: 10,
                  column: 50,
                 },
                },
               },
              ),
              List(
               List {
                elements: [
                 Identifier(
                  Identifier {
                   id: "iperf",
                   span: Span {
                    start: Position {
                     line: 11,
                     column: 5,
                    },
                    end: Position {
                     line: 11,
                     column: 10,
                    },
                   },
                  },
                 ),
                 Identifier(
                  Identifier {
                   id: "ethtool",
                   span: Span {
                    start: Position {
                     line: 11,
                     column: 11,
                    },
                    end: Position {
                     line: 11,
                     column: 18,
                    },
                   },
                  },
                 ),
                 Identifier(
                  Identifier {
                   id: "iproute2",
                   span: Span {
                    start: Position {
                     line: 11,
                     column: 19,
                    },
                    end: Position {
                     line: 11,
                     column: 27,
                    },
                   },
                  },
                 ),
                 Identifier(
                  Identifier {
                   id: "socat",
                   span: Span {
                    start: Position {
                     line: 11,
                     column: 28,
                    },
                    end: Position {
                     line: 11,
                     column: 33,
                    },
                   },
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 10,
                  column: 52,
                 },
                 end: Position {
                  line: 12,
                  column: 4,
                 },
                },
               },
              ),
             ],
            },
           ),
           span: Span {
            start: Position {
             line: 10,
             column: 19,
            },
            end: Position {
             line: 12,
             column: 4,
            },
           },
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "pyEnv",
            span: Span {
             start: Position {
              line: 14,
              column: 3,
             },
             end: Position {
              line: 14,
              column: 8,
             },
            },
           },
          ),
         ],
         to: FunctionApplication(
          FunctionApplication {
           function: PropertyAccess(
            PropertyAccess {
             expression: Identifier(
              Identifier {
               id: "pkgs",
               span: Span {
                start: Position {
                 line: 14,
                 column: 11,
                },
                end: Position {
                 line: 14,
                 column: 15,
                },
               },
              },
             ),
             attribute_path: [
              Raw(
               PartRaw {
                content: "python",
                span: Span {
                 start: Position {
                  line: 14,
                  column: 16,
                 },
                 end: Position {
                  line: 14,
                  column: 22,
                 },
                },
               },
              ),
              Raw(
               PartRaw {
                content: "withPackages",
                span: Span {
                 start: Position {
                  line: 14,
                  column: 23,
                 },
                 end: Position {
                  line: 14,
                  column: 35,
                 },
                },
               },
              ),
             ],
             default: None,
            },
           ),
           arguments: [
            Function(
             Function {
              head: Simple(
               FunctionHeadSimple {
                identifier: "ps",
               },
              ),
              body: List(
               List {
                elements: [
                 PropertyAccess(
                  PropertyAccess {
                   expression: Identifier(
                    Identifier {
                     id: "ps",
                     span: Span {
                      start: Position {
                       line: 14,
                       column: 42,
                      },
                      end: Position {
                       line: 14,
                       column: 44,
                      },
                     },
                    },
                   ),
                   attribute_path: [
                    Raw(
                     PartRaw {
                      content: "mininet-python",
                      span: Span {
                       start: Position {
                        line: 14,
                        column: 45,
                       },
                       end: Position {
                        line: 14,
                        column: 59,
                       },
                      },
                     },
                    ),
                   ],
                   default: None,
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 14,
                  column: 40,
                 },
                 end: Position {
                  line: 14,
                  column: 61,
                 },
                },
               },
              ),
              span: Span {
               start: Position {
                line: 14,
                column: 36,
               },
               end: Position {
                line: 14,
                column: 61,
               },
              },
             },
            ),
           ],
          },
         ),
        },
       ),
       KeyValue(
        BindingKeyValue {
         from: [
          Raw(
           PartRaw {
            content: "mnexecWrapped",
            span: Span {
             start: Position {
              line: 16,
              column: 3,
             },
             end: Position {
              line: 16,
              column: 16,
             },
            },
           },
          ),
         ],
         to: FunctionApplication(
          FunctionApplication {
           function: PropertyAccess(
            PropertyAccess {
             expression: Identifier(
              Identifier {
               id: "pkgs",
               span: Span {
                start: Position {
                 line: 16,
                 column: 19,
                },
                end: Position {
                 line: 16,
                 column: 23,
                },
               },
              },
             ),
             attribute_path: [
              Raw(
               PartRaw {
                content: "runCommand",
                span: Span {
                 start: Position {
                  line: 16,
                  column: 24,
                 },
                 end: Position {
                  line: 16,
                  column: 34,
                 },
                },
               },
              ),
             ],
             default: None,
            },
           ),
           arguments: [
            String(
             String_ {
              parts: [
               Raw(
                PartRaw {
                 content: "mnexec-wrapper",
                 span: Span {
                  start: Position {
                   line: 16,
                   column: 36,
                  },
                  end: Position {
                   line: 16,
                   column: 50,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 16,
                column: 35,
               },
               end: Position {
                line: 16,
                column: 51,
               },
              },
             },
            ),
            Map(
             Map {
              recursive: false,
              bindings: [
               KeyValue(
                BindingKeyValue {
                 from: [
                  Raw(
                   PartRaw {
                    content: "nativeBuildInputs",
                    span: Span {
                     start: Position {
                      line: 17,
                      column: 7,
                     },
                     end: Position {
                      line: 17,
                      column: 24,
                     },
                    },
                   },
                  ),
                 ],
                 to: List(
                  List {
                   elements: [
                    PropertyAccess(
                     PropertyAccess {
                      expression: Identifier(
                       Identifier {
                        id: "pkgs",
                        span: Span {
                         start: Position {
                          line: 17,
                          column: 29,
                         },
                         end: Position {
                          line: 17,
                          column: 33,
                         },
                        },
                       },
                      ),
                      attribute_path: [
                       Raw(
                        PartRaw {
                         content: "makeWrapper",
                         span: Span {
                          start: Position {
                           line: 17,
                           column: 34,
                          },
                          end: Position {
                           line: 17,
                           column: 45,
                          },
                         },
                        },
                       ),
                      ],
                      default: None,
                     },
                    ),
                    PropertyAccess(
                     PropertyAccess {
                      expression: Identifier(
                       Identifier {
                        id: "pkgs",
                        span: Span {
                         start: Position {
                          line: 17,
                          column: 46,
                         },
                         end: Position {
                          line: 17,
                          column: 50,
                         },
                        },
                       },
                      ),
                      attribute_path: [
                       Raw(
                        PartRaw {
                         content: "pythonPackages",
                         span: Span {
                          start: Position {
                           line: 17,
                           column: 51,
                          },
                          end: Position {
                           line: 17,
                           column: 65,
                          },
                         },
                        },
                       ),
                       Raw(
                        PartRaw {
                         content: "wrapPython",
                         span: Span {
                          start: Position {
                           line: 17,
                           column: 66,
                          },
                          end: Position {
                           line: 17,
                           column: 76,
                          },
                         },
                        },
                       ),
                      ],
                      default: None,
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 17,
                     column: 27,
                    },
                    end: Position {
                     line: 17,
                     column: 78,
                    },
                   },
                  },
                 ),
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 17,
                column: 5,
               },
               end: Position {
                line: 17,
                column: 81,
               },
              },
             },
            ),
            IndentedString(
             IndentedString {
              parts: [
               Raw(
                PartRaw {
                 content: "makeWrapper ",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 1,
                  },
                  end: Position {
                   line: 19,
                   column: 19,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: PropertyAccess(
                  PropertyAccess {
                   expression: Identifier(
                    Identifier {
                     id: "pkgs",
                     span: Span {
                      start: Position {
                       line: 19,
                       column: 21,
                      },
                      end: Position {
                       line: 19,
                       column: 25,
                      },
                     },
                    },
                   ),
                   attribute_path: [
                    Raw(
                     PartRaw {
                      content: "mininet",
                      span: Span {
                       start: Position {
                        line: 19,
                        column: 26,
                       },
                       end: Position {
                        line: 19,
                        column: 33,
                       },
                      },
                     },
                    ),
                   ],
                   default: None,
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "/bin/mnexec \\\n  $out/bin/mnexec \\\n  --prefix PATH : \"",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 1,
                  },
                  end: Position {
                   line: 21,
                   column: 26,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: Identifier(
                  Identifier {
                   id: "generatedPath",
                   span: Span {
                    start: Position {
                     line: 21,
                     column: 28,
                    },
                    end: Position {
                     line: 21,
                     column: 41,
                    },
                   },
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "\"\n\nln -s ",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 1,
                  },
                  end: Position {
                   line: 23,
                   column: 13,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: Identifier(
                  Identifier {
                   id: "pyEnv",
                   span: Span {
                    start: Position {
                     line: 23,
                     column: 15,
                    },
                    end: Position {
                     line: 23,
                     column: 20,
                    },
                   },
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "/bin/mn $out/bin/mn\n\n# mn errors out without a telnet binary\n# pkgs.inetutils brings an undesired ifconfig into PATH see #43105\nln -s ",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 1,
                  },
                  end: Position {
                   line: 27,
                   column: 13,
                  },
                 },
                },
               ),
               Interpolation(
                PartInterpolation {
                 expression: PropertyAccess(
                  PropertyAccess {
                   expression: Identifier(
                    Identifier {
                     id: "pkgs",
                     span: Span {
                      start: Position {
                       line: 27,
                       column: 15,
                      },
                      end: Position {
                       line: 27,
                       column: 19,
                      },
                     },
                    },
                   ),
                   attribute_path: [
                    Raw(
                     PartRaw {
                      content: "inetutils",
                      span: Span {
                       start: Position {
                        line: 27,
                        column: 20,
                       },
                       end: Position {
                        line: 27,
                        column: 29,
                       },
                      },
                     },
                    ),
                   ],
                   default: None,
                  },
                 ),
                },
               ),
               Raw(
                PartRaw {
                 content: "/bin/telnet $out/bin/telnet\n",
                 span: Span {
                  start: Position {
                   line: 19,
                   column: 1,
                  },
                  end: Position {
                   line: 28,
                   column: 5,
                  },
                 },
                },
               ),
              ],
              span: Span {
               start: Position {
                line: 18,
                column: 5,
               },
               end: Position {
                line: 28,
                column: 7,
               },
              },
             },
            ),
           ],
          },
         ),
        },
       ),
      ],
      target: Map(
       Map {
        recursive: false,
        bindings: [
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "options",
              span: Span {
               start: Position {
                line: 31,
                column: 3,
               },
               end: Position {
                line: 31,
                column: 10,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "programs",
              span: Span {
               start: Position {
                line: 31,
                column: 11,
               },
               end: Position {
                line: 31,
                column: 19,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "mininet",
              span: Span {
               start: Position {
                line: 31,
                column: 20,
               },
               end: Position {
                line: 31,
                column: 27,
               },
              },
             },
            ),
            Raw(
             PartRaw {
              content: "enable",
              span: Span {
               start: Position {
                line: 31,
                column: 28,
               },
               end: Position {
                line: 31,
                column: 34,
               },
              },
             },
            ),
           ],
           to: FunctionApplication(
            FunctionApplication {
             function: Identifier(
              Identifier {
               id: "mkEnableOption",
               span: Span {
                start: Position {
                 line: 31,
                 column: 37,
                },
                end: Position {
                 line: 31,
                 column: 51,
                },
               },
              },
             ),
             arguments: [
              FunctionApplication(
               FunctionApplication {
                function: PropertyAccess(
                 PropertyAccess {
                  expression: Identifier(
                   Identifier {
                    id: "lib",
                    span: Span {
                     start: Position {
                      line: 31,
                      column: 53,
                     },
                     end: Position {
                      line: 31,
                      column: 56,
                     },
                    },
                   },
                  ),
                  attribute_path: [
                   Raw(
                    PartRaw {
                     content: "mdDoc",
                     span: Span {
                      start: Position {
                       line: 31,
                       column: 57,
                      },
                      end: Position {
                       line: 31,
                       column: 62,
                      },
                     },
                    },
                   ),
                  ],
                  default: None,
                 },
                ),
                arguments: [
                 String(
                  String_ {
                   parts: [
                    Raw(
                     PartRaw {
                      content: "Mininet",
                      span: Span {
                       start: Position {
                        line: 31,
                        column: 64,
                       },
                       end: Position {
                        line: 31,
                        column: 71,
                       },
                      },
                     },
                    ),
                   ],
                   span: Span {
                    start: Position {
                     line: 31,
                     column: 63,
                    },
                    end: Position {
                     line: 31,
                     column: 72,
                    },
                   },
                  },
                 ),
                ],
               },
              ),
             ],
            },
           ),
          },
         ),
         KeyValue(
          BindingKeyValue {
           from: [
            Raw(
             PartRaw {
              content: "config",
              span: Span {
               start: Position {
                line: 33,
                column: 3,
               },
               end: Position {
                line: 33,
                column: 9,
               },
              },
             },
            ),
           ],
           to: FunctionApplication(
            FunctionApplication {
             function: Identifier(
              Identifier {
               id: "mkIf",
               span: Span {
                start: Position {
                 line: 33,
                 column: 12,
                },
                end: Position {
                 line: 33,
                 column: 16,
                },
               },
              },
             ),
             arguments: [
              PropertyAccess(
               PropertyAccess {
                expression: Identifier(
                 Identifier {
                  id: "cfg",
                  span: Span {
                   start: Position {
                    line: 33,
                    column: 17,
                   },
                   end: Position {
                    line: 33,
                    column: 20,
                   },
                  },
                 },
                ),
                attribute_path: [
                 Raw(
                  PartRaw {
                   content: "enable",
                   span: Span {
                    start: Position {
                     line: 33,
                     column: 21,
                    },
                    end: Position {
                     line: 33,
                     column: 27,
                    },
                   },
                  },
                 ),
                ],
                default: None,
               },
              ),
              Map(
               Map {
                recursive: false,
                bindings: [
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "virtualisation",
                      span: Span {
                       start: Position {
                        line: 35,
                        column: 5,
                       },
                       end: Position {
                        line: 35,
                        column: 19,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "vswitch",
                      span: Span {
                       start: Position {
                        line: 35,
                        column: 20,
                       },
                       end: Position {
                        line: 35,
                        column: 27,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "enable",
                      span: Span {
                       start: Position {
                        line: 35,
                        column: 28,
                       },
                       end: Position {
                        line: 35,
                        column: 34,
                       },
                      },
                     },
                    ),
                   ],
                   to: Identifier(
                    Identifier {
                     id: "true",
                     span: Span {
                      start: Position {
                       line: 35,
                       column: 37,
                      },
                      end: Position {
                       line: 35,
                       column: 41,
                      },
                     },
                    },
                   ),
                  },
                 ),
                 KeyValue(
                  BindingKeyValue {
                   from: [
                    Raw(
                     PartRaw {
                      content: "environment",
                      span: Span {
                       start: Position {
                        line: 37,
                        column: 5,
                       },
                       end: Position {
                        line: 37,
                        column: 16,
                       },
                      },
                     },
                    ),
                    Raw(
                     PartRaw {
                      content: "systemPackages",
                      span: Span {
                       start: Position {
                        line: 37,
                        column: 17,
                       },
                       end: Position {
                        line: 37,
                        column: 31,
                       },
                      },
                     },
                    ),
                   ],
                   to: List(
                    List {
                     elements: [
                      Identifier(
                       Identifier {
                        id: "mnexecWrapped",
                        span: Span {
                         start: Position {
                          line: 37,
                          column: 36,
                         },
                         end: Position {
                          line: 37,
                          column: 49,
                         },
                        },
                       },
                      ),
                     ],
                     span: Span {
                      start: Position {
                       line: 37,
                       column: 34,
                      },
                      end: Position {
                       line: 37,
                       column: 51,
                      },
                     },
                    },
                   ),
                  },
                 ),
                ],
                span: Span {
                 start: Position {
                  line: 33,
                  column: 28,
                 },
                 end: Position {
                  line: 38,
                  column: 4,
                 },
                },
               },
              ),
             ],
            },
           ),
          },
         ),
        ],
        span: Span {
         start: Position {
          line: 30,
          column: 1,
         },
         end: Position {
          line: 39,
          column: 2,
         },
        },
       },
      ),
      span: Span {
       start: Position {
        line: 7,
        column: 1,
       },
       end: Position {
        line: 39,
        column: 2,
       },
      },
     },
    ),
    span: Span {
     start: Position {
      line: 5,
      column: 1,
     },
     end: Position {
      line: 39,
      column: 2,
     },
    },
   },
  ),
  span: Span {
   start: Position {
    line: 3,
    column: 1,
   },
   end: Position {
    line: 39,
    column: 2,
   },
  },
 },
)