---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (3, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "prg",
        position: (6, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (6, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "programs",
         position: (6, 16),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (7, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "prg",
       position: (7, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "bash-my-aws",
         position: (7, 13),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "initScript",
        position: (9, 3),
       },
      ],
     },
     to: String {
      parts: [
       Raw {
        content: "eval $(",
        position: (10, 1),
       },
       Expression {
        expression: PropertyAccess {
         expression: Variable {
          identifier: "pkgs",
          position: (10, 14),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "bash-my-aws",
            position: (10, 19),
           },
          ],
         },
         default: None,
        },
       },
       Raw {
        content: "/bin/bma-init)\n",
        position: (10, 31),
       },
      ],
      position: (9, 16),
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (14, 5),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "programs",
            position: (15, 7),
           },
           Raw {
            content: "bash-my-aws",
            position: (15, 16),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "enable",
               position: (16, 9),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkEnableOption",
              position: (16, 18),
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "bash-my-aws",
                 position: (16, 34),
                },
               ],
               position: (16, 33),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (15, 30),
         },
        },
       ],
       recursive: false,
       position: (14, 15),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (20, 5),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (20, 14),
       },
       arguments: [
        PropertyAccess {
         expression: Variable {
          identifier: "cfg",
          position: (20, 19),
         },
         attribute_path: AttributePath {
          parts: [
           Raw {
            content: "enable",
            position: (20, 23),
           },
          ],
         },
         default: None,
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (21, 7),
             },
             Raw {
              content: "systemPackages",
              position: (21, 19),
             },
            ],
           },
           to: With {
            expression: Variable {
             identifier: "pkgs",
             position: (21, 41),
            },
            target: List {
             elements: [
              Variable {
               identifier: "bash-my-aws",
               position: (21, 49),
              },
             ],
             position: (21, 47),
            },
            position: (21, 36),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "programs",
              position: (23, 7),
             },
             Raw {
              content: "bash",
              position: (23, 16),
             },
             Raw {
              content: "interactiveShellInit",
              position: (23, 21),
             },
            ],
           },
           to: Variable {
            identifier: "initScript",
            position: (23, 44),
           },
          },
         ],
         recursive: false,
         position: (20, 30),
        },
       ],
      },
     },
    ],
    recursive: false,
    position: (13, 3),
   },
   position: (5, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}