---
With {
 expression: FunctionApplication {
  function: Variable {
   identifier: "import",
   position: (3, 6),
  },
  arguments: [
   Path {
    parts: [
     Raw {
      content: "../..",
      position: (3, 13),
     },
    ],
    position: (3, 13),
   },
   Map {
    bindings: [],
    recursive: false,
    position: (3, 19),
   },
  ],
 },
 target: With {
  expression: Variable {
   identifier: "lib",
   position: (4, 6),
  },
  target: Function {
   argument: Destructured {
    identifier: None,
    arguments: [
     DestructuredArgument {
      identifier: "expr",
      default: None,
     },
    ],
    ellipsis: false,
   },
   definition: LetIn {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "root",
         position: (10, 3),
        },
       ],
      },
      to: Variable {
       identifier: "expr",
       position: (10, 10),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "uniqueUrls",
         position: (12, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "map",
        position: (12, 16),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "x",
          },
          definition: PropertyAccess {
           expression: Variable {
            identifier: "x",
            position: (12, 24),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "file",
              position: (12, 26),
             },
            ],
           },
           default: None,
          },
          position: (12, 21),
         },
         position: (12, 20),
        },
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "genericClosure",
           position: (12, 33),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "startSet",
                 position: (13, 5),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "map",
                position: (13, 16),
               },
               arguments: [
                Parentheses {
                 expression: Function {
                  argument: Simple {
                   identifier: "file",
                  },
                  definition: Map {
                   bindings: [
                    Binding {
                     from: AttributePath {
                      parts: [
                       Raw {
                        content: "key",
                        position: (13, 29),
                       },
                      ],
                     },
                     to: PropertyAccess {
                      expression: Variable {
                       identifier: "file",
                       position: (13, 35),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "url",
                         position: (13, 40),
                        },
                       ],
                      },
                      default: None,
                     },
                    },
                    Inherit {
                     from: None,
                     attributes: [
                      Raw {
                       content: "file",
                       position: (13, 53),
                      },
                     ],
                    },
                   ],
                   recursive: false,
                   position: (13, 27),
                  },
                  position: (13, 21),
                 },
                 position: (13, 20),
                },
                Variable {
                 identifier: "urls",
                 position: (13, 62),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "operator",
                 position: (14, 5),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "const",
                position: (14, 16),
               },
               arguments: [
                List {
                 elements: [],
                 position: (14, 22),
                },
               ],
              },
             },
            ],
            recursive: false,
            position: (12, 48),
           },
          ],
         },
         position: (12, 32),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "urls",
         position: (17, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "map",
        position: (17, 10),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "drv",
          },
          definition: Map {
           bindings: [
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "url",
                position: (17, 22),
               },
              ],
             },
             to: FunctionApplication {
              function: Variable {
               identifier: "head",
               position: (17, 28),
              },
              arguments: [
               Parentheses {
                expression: PropertyAccess {
                 expression: Variable {
                  identifier: "drv",
                  position: (17, 34),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "urls",
                    position: (17, 38),
                   },
                  ],
                 },
                 default: Some(
                  List {
                   elements: [
                    PropertyAccess {
                     expression: Variable {
                      identifier: "drv",
                      position: (17, 48),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "url",
                        position: (17, 52),
                       },
                      ],
                     },
                     default: None,
                    },
                   ],
                   position: (17, 46),
                  },
                 ),
                },
                position: (17, 33),
               },
              ],
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "hash",
                position: (17, 60),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "drv",
               position: (17, 67),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "outputHash",
                 position: (17, 71),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "type",
                position: (17, 83),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "drv",
               position: (17, 90),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "outputHashAlgo",
                 position: (17, 94),
                },
               ],
              },
              default: None,
             },
            },
            Binding {
             from: AttributePath {
              parts: [
               Raw {
                content: "name",
                position: (17, 110),
               },
              ],
             },
             to: PropertyAccess {
              expression: Variable {
               identifier: "drv",
               position: (17, 117),
              },
              attribute_path: AttributePath {
               parts: [
                Raw {
                 content: "name",
                 position: (17, 121),
                },
               ],
              },
              default: None,
             },
            },
           ],
           recursive: false,
           position: (17, 20),
          },
          position: (17, 15),
         },
         position: (17, 14),
        },
        Variable {
         identifier: "fetchurlDependencies",
         position: (17, 130),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "fetchurlDependencies",
         position: (19, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "filter",
        position: (20, 5),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "drv",
          },
          definition: BinaryOperation {
           operator: LogicalAnd,
           operands: [
            BinaryOperation {
             operator: LogicalAnd,
             operands: [
              BinaryOperation {
               operator: LogicalAnd,
               operands: [
                BinaryOperation {
                 operator: NotEqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "drv",
                    position: (21, 13),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "outputHash",
                      position: (21, 17),
                     },
                    ],
                   },
                   default: Some(
                    String {
                     parts: [],
                     position: (21, 31),
                    },
                   ),
                  },
                  String {
                   parts: [],
                   position: (21, 37),
                  },
                 ],
                 position: (21, 34),
                },
                BinaryOperation {
                 operator: EqualTo,
                 operands: [
                  PropertyAccess {
                   expression: Variable {
                    identifier: "drv",
                    position: (21, 43),
                   },
                   attribute_path: AttributePath {
                    parts: [
                     Raw {
                      content: "outputHashMode",
                      position: (21, 47),
                     },
                    ],
                   },
                   default: Some(
                    String {
                     parts: [
                      Raw {
                       content: "flat",
                       position: (21, 66),
                      },
                     ],
                     position: (21, 65),
                    },
                   ),
                  },
                  String {
                   parts: [
                    Raw {
                     content: "flat",
                     position: (21, 76),
                    },
                   ],
                   position: (21, 75),
                  },
                 ],
                 position: (21, 72),
                },
               ],
               position: (21, 40),
              },
              BinaryOperation {
               operator: EqualTo,
               operands: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "drv",
                  position: (22, 14),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "postFetch",
                    position: (22, 18),
                   },
                  ],
                 },
                 default: Some(
                  String {
                   parts: [],
                   position: (22, 31),
                  },
                 ),
                },
                String {
                 parts: [],
                 position: (22, 37),
                },
               ],
               position: (22, 34),
              },
             ],
             position: (22, 11),
            },
            Parentheses {
             expression: BinaryOperation {
              operator: LogicalOr,
              operands: [
               HasProperty {
                expression: Variable {
                 identifier: "drv",
                 position: (22, 44),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "url",
                   position: (22, 50),
                  },
                 ],
                },
                position: (22, 48),
               },
               HasProperty {
                expression: Variable {
                 identifier: "drv",
                 position: (22, 57),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "urls",
                   position: (22, 63),
                  },
                 ],
                },
                position: (22, 61),
               },
              ],
              position: (22, 54),
             },
             position: (22, 43),
            },
           ],
           position: (22, 40),
          },
          position: (21, 8),
         },
         position: (21, 7),
        },
        Variable {
         identifier: "dependencies",
         position: (23, 7),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "dependencies",
         position: (25, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "map",
        position: (25, 18),
       },
       arguments: [
        Parentheses {
         expression: Function {
          argument: Simple {
           identifier: "x",
          },
          definition: PropertyAccess {
           expression: Variable {
            identifier: "x",
            position: (25, 26),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "value",
              position: (25, 28),
             },
            ],
           },
           default: None,
          },
          position: (25, 23),
         },
         position: (25, 22),
        },
        Parentheses {
         expression: FunctionApplication {
          function: Variable {
           identifier: "genericClosure",
           position: (25, 36),
          },
          arguments: [
           Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "startSet",
                 position: (26, 5),
                },
               ],
              },
              to: FunctionApplication {
               function: Variable {
                identifier: "map",
                position: (26, 16),
               },
               arguments: [
                Variable {
                 identifier: "keyDrv",
                 position: (26, 20),
                },
                Parentheses {
                 expression: FunctionApplication {
                  function: Variable {
                   identifier: "derivationsIn'",
                   position: (26, 28),
                  },
                  arguments: [
                   Variable {
                    identifier: "root",
                    position: (26, 43),
                   },
                  ],
                 },
                 position: (26, 27),
                },
               ],
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "operator",
                 position: (27, 5),
                },
               ],
              },
              to: Function {
               argument: Destructured {
                identifier: None,
                arguments: [
                 DestructuredArgument {
                  identifier: "key",
                  default: None,
                 },
                 DestructuredArgument {
                  identifier: "value",
                  default: None,
                 },
                ],
                ellipsis: false,
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "map",
                 position: (27, 32),
                },
                arguments: [
                 Variable {
                  identifier: "keyDrv",
                  position: (27, 36),
                 },
                 Parentheses {
                  expression: FunctionApplication {
                   function: Variable {
                    identifier: "immediateDependenciesOf",
                    position: (27, 44),
                   },
                   arguments: [
                    Variable {
                     identifier: "value",
                     position: (27, 68),
                    },
                   ],
                  },
                  position: (27, 43),
                 },
                ],
               },
               position: (27, 16),
              },
             },
            ],
            recursive: false,
            position: (25, 51),
           },
          ],
         },
         position: (25, 35),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "derivationsIn'",
         position: (30, 3),
        },
       ],
      },
      to: Function {
       argument: Simple {
        identifier: "x",
       },
       definition: IfThenElse {
        predicate: UnaryOperation {
         operator: Not,
         operand: FunctionApplication {
          function: Variable {
           identifier: "canEval",
           position: (31, 9),
          },
          arguments: [
           Variable {
            identifier: "x",
            position: (31, 17),
           },
          ],
         },
         position: (31, 8),
        },
        then: List {
         elements: [],
         position: (31, 24),
        },
        else_: IfThenElse {
         predicate: FunctionApplication {
          function: Variable {
           identifier: "isDerivation",
           position: (32, 13),
          },
          arguments: [
           Variable {
            identifier: "x",
            position: (32, 26),
           },
          ],
         },
         then: FunctionApplication {
          function: Variable {
           identifier: "optional",
           position: (32, 33),
          },
          arguments: [
           Parentheses {
            expression: FunctionApplication {
             function: Variable {
              identifier: "canEval",
              position: (32, 43),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "x",
                position: (32, 51),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "drvPath",
                  position: (32, 53),
                 },
                ],
               },
               default: None,
              },
             ],
            },
            position: (32, 42),
           },
           Variable {
            identifier: "x",
            position: (32, 62),
           },
          ],
         },
         else_: IfThenElse {
          predicate: FunctionApplication {
           function: Variable {
            identifier: "isList",
            position: (33, 13),
           },
           arguments: [
            Variable {
             identifier: "x",
             position: (33, 20),
            },
           ],
          },
          then: FunctionApplication {
           function: Variable {
            identifier: "concatLists",
            position: (33, 27),
           },
           arguments: [
            Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "map",
               position: (33, 40),
              },
              arguments: [
               Variable {
                identifier: "derivationsIn'",
                position: (33, 44),
               },
               Variable {
                identifier: "x",
                position: (33, 59),
               },
              ],
             },
             position: (33, 39),
            },
           ],
          },
          else_: IfThenElse {
           predicate: FunctionApplication {
            function: Variable {
             identifier: "isAttrs",
             position: (34, 13),
            },
            arguments: [
             Variable {
              identifier: "x",
              position: (34, 21),
             },
            ],
           },
           then: FunctionApplication {
            function: Variable {
             identifier: "concatLists",
             position: (34, 28),
            },
            arguments: [
             Parentheses {
              expression: FunctionApplication {
               function: Variable {
                identifier: "mapAttrsToList",
                position: (34, 41),
               },
               arguments: [
                Parentheses {
                 expression: Function {
                  argument: Simple {
                   identifier: "n",
                  },
                  definition: Function {
                   argument: Simple {
                    identifier: "v",
                   },
                   definition: FunctionApplication {
                    function: Variable {
                     identifier: "addErrorContext",
                     position: (34, 63),
                    },
                    arguments: [
                     String {
                      parts: [
                       Raw {
                        content: "while finding tarballs in '",
                        position: (34, 80),
                       },
                       Interpolation {
                        expression: Variable {
                         identifier: "n",
                         position: (34, 109),
                        },
                       },
                       Raw {
                        content: "':",
                        position: (34, 111),
                       },
                      ],
                      position: (34, 79),
                     },
                     Parentheses {
                      expression: FunctionApplication {
                       function: Variable {
                        identifier: "derivationsIn'",
                        position: (34, 116),
                       },
                       arguments: [
                        Variable {
                         identifier: "v",
                         position: (34, 131),
                        },
                       ],
                      },
                      position: (34, 115),
                     },
                    ],
                   },
                   position: (34, 60),
                  },
                  position: (34, 57),
                 },
                 position: (34, 56),
                },
                Variable {
                 identifier: "x",
                 position: (34, 135),
                },
               ],
              },
              position: (34, 40),
             },
            ],
           },
           else_: List {
            elements: [],
            position: (35, 10),
           },
           position: (34, 10),
          },
          position: (33, 10),
         },
         position: (32, 10),
        },
        position: (31, 5),
       },
       position: (30, 20),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "keyDrv",
         position: (37, 3),
        },
       ],
      },
      to: Function {
       argument: Simple {
        identifier: "drv",
       },
       definition: IfThenElse {
        predicate: FunctionApplication {
         function: Variable {
          identifier: "canEval",
          position: (37, 20),
         },
         arguments: [
          PropertyAccess {
           expression: Variable {
            identifier: "drv",
            position: (37, 28),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "drvPath",
              position: (37, 32),
             },
            ],
           },
           default: None,
          },
         ],
        },
        then: Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "key",
              position: (37, 47),
             },
            ],
           },
           to: PropertyAccess {
            expression: Variable {
             identifier: "drv",
             position: (37, 53),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "drvPath",
               position: (37, 57),
              },
             ],
            },
            default: None,
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "value",
              position: (37, 66),
             },
            ],
           },
           to: Variable {
            identifier: "drv",
            position: (37, 74),
           },
          },
         ],
         recursive: false,
         position: (37, 45),
        },
        else_: Map {
         bindings: [],
         recursive: false,
         position: (37, 86),
        },
        position: (37, 17),
       },
       position: (37, 12),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "immediateDependenciesOf",
         position: (39, 3),
        },
       ],
      },
      to: Function {
       argument: Simple {
        identifier: "drv",
       },
       definition: FunctionApplication {
        function: Variable {
         identifier: "concatLists",
         position: (40, 5),
        },
        arguments: [
         Parentheses {
          expression: FunctionApplication {
           function: Variable {
            identifier: "mapAttrsToList",
            position: (40, 18),
           },
           arguments: [
            Parentheses {
             expression: Function {
              argument: Simple {
               identifier: "n",
              },
              definition: Function {
               argument: Simple {
                identifier: "v",
               },
               definition: FunctionApplication {
                function: Variable {
                 identifier: "derivationsIn",
                 position: (40, 40),
                },
                arguments: [
                 Variable {
                  identifier: "v",
                  position: (40, 54),
                 },
                ],
               },
               position: (40, 37),
              },
              position: (40, 34),
             },
             position: (40, 33),
            },
            Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "removeAttrs",
               position: (40, 58),
              },
              arguments: [
               Variable {
                identifier: "drv",
                position: (40, 70),
               },
               Parentheses {
                expression: BinaryOperation {
                 operator: Concatenation,
                 operands: [
                  List {
                   elements: [
                    String {
                     parts: [
                      Raw {
                       content: "meta",
                       position: (40, 77),
                      },
                     ],
                     position: (40, 76),
                    },
                    String {
                     parts: [
                      Raw {
                       content: "passthru",
                       position: (40, 84),
                      },
                     ],
                     position: (40, 83),
                    },
                   ],
                   position: (40, 75),
                  },
                  FunctionApplication {
                   function: Variable {
                    identifier: "optionals",
                    position: (40, 98),
                   },
                   arguments: [
                    Parentheses {
                     expression: HasProperty {
                      expression: Variable {
                       identifier: "drv",
                       position: (40, 109),
                      },
                      attribute_path: AttributePath {
                       parts: [
                        Raw {
                         content: "passthru",
                         position: (40, 113),
                        },
                       ],
                      },
                      position: (40, 112),
                     },
                     position: (40, 108),
                    },
                    Parentheses {
                     expression: FunctionApplication {
                      function: Variable {
                       identifier: "attrNames",
                       position: (40, 124),
                      },
                      arguments: [
                       PropertyAccess {
                        expression: Variable {
                         identifier: "drv",
                         position: (40, 134),
                        },
                        attribute_path: AttributePath {
                         parts: [
                          Raw {
                           content: "passthru",
                           position: (40, 138),
                          },
                         ],
                        },
                        default: None,
                       },
                      ],
                     },
                     position: (40, 123),
                    },
                   ],
                  },
                 ],
                 position: (40, 95),
                },
                position: (40, 74),
               },
              ],
             },
             position: (40, 57),
            },
           ],
          },
          position: (40, 17),
         },
        ],
       },
       position: (39, 29),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "derivationsIn",
         position: (42, 3),
        },
       ],
      },
      to: Function {
       argument: Simple {
        identifier: "x",
       },
       definition: IfThenElse {
        predicate: UnaryOperation {
         operator: Not,
         operand: FunctionApplication {
          function: Variable {
           identifier: "canEval",
           position: (43, 9),
          },
          arguments: [
           Variable {
            identifier: "x",
            position: (43, 17),
           },
          ],
         },
         position: (43, 8),
        },
        then: List {
         elements: [],
         position: (43, 24),
        },
        else_: IfThenElse {
         predicate: FunctionApplication {
          function: Variable {
           identifier: "isDerivation",
           position: (44, 13),
          },
          arguments: [
           Variable {
            identifier: "x",
            position: (44, 26),
           },
          ],
         },
         then: FunctionApplication {
          function: Variable {
           identifier: "optional",
           position: (44, 33),
          },
          arguments: [
           Parentheses {
            expression: FunctionApplication {
             function: Variable {
              identifier: "canEval",
              position: (44, 43),
             },
             arguments: [
              PropertyAccess {
               expression: Variable {
                identifier: "x",
                position: (44, 51),
               },
               attribute_path: AttributePath {
                parts: [
                 Raw {
                  content: "drvPath",
                  position: (44, 53),
                 },
                ],
               },
               default: None,
              },
             ],
            },
            position: (44, 42),
           },
           Variable {
            identifier: "x",
            position: (44, 62),
           },
          ],
         },
         else_: IfThenElse {
          predicate: FunctionApplication {
           function: Variable {
            identifier: "isList",
            position: (45, 13),
           },
           arguments: [
            Variable {
             identifier: "x",
             position: (45, 20),
            },
           ],
          },
          then: FunctionApplication {
           function: Variable {
            identifier: "concatLists",
            position: (45, 27),
           },
           arguments: [
            Parentheses {
             expression: FunctionApplication {
              function: Variable {
               identifier: "map",
               position: (45, 40),
              },
              arguments: [
               Variable {
                identifier: "derivationsIn",
                position: (45, 44),
               },
               Variable {
                identifier: "x",
                position: (45, 58),
               },
              ],
             },
             position: (45, 39),
            },
           ],
          },
          else_: List {
           elements: [],
           position: (46, 10),
          },
          position: (45, 10),
         },
         position: (44, 10),
        },
        position: (43, 5),
       },
       position: (42, 19),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "canEval",
         position: (48, 3),
        },
       ],
      },
      to: Function {
       argument: Simple {
        identifier: "val",
       },
       definition: PropertyAccess {
        expression: Parentheses {
         expression: FunctionApplication {
          function: PropertyAccess {
           expression: Variable {
            identifier: "builtins",
            position: (48, 19),
           },
           attribute_path: AttributePath {
            parts: [
             Raw {
              content: "tryEval",
              position: (48, 28),
             },
            ],
           },
           default: None,
          },
          arguments: [
           Variable {
            identifier: "val",
            position: (48, 36),
           },
          ],
         },
         position: (48, 18),
        },
        attribute_path: AttributePath {
         parts: [
          Raw {
           content: "success",
           position: (48, 41),
          },
         ],
        },
        default: None,
       },
       position: (48, 13),
      },
     },
    ],
    target: Variable {
     identifier: "uniqueUrls",
     position: (50, 4),
    },
    position: (8, 1),
   },
   position: (6, 1),
  },
  position: (4, 1),
 },
 position: (3, 1),
}