With( With { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 12, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../..", span: Span { start: Position { line: 3, column: 13, }, end: Position { line: 3, column: 18, }, }, }, ), ], span: Span { start: Position { line: 3, column: 13, }, end: Position { line: 3, column: 18, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 3, column: 19, }, end: Position { line: 3, column: 22, }, }, }, ), ], }, ), target: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 4, column: 6, }, end: Position { line: 4, column: 9, }, }, }, ), target: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "expr", default: None, }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "root", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 7, }, }, }, ), ], to: Identifier( Identifier { id: "expr", span: Span { start: Position { line: 10, column: 10, }, end: Position { line: 10, column: 14, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "uniqueUrls", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 12, column: 16, }, end: Position { line: 12, column: 19, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 12, column: 24, }, end: Position { line: 12, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "file", span: Span { start: Position { line: 12, column: 26, }, end: Position { line: 12, column: 30, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 12, column: 21, }, end: Position { line: 12, column: 30, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "genericClosure", span: Span { start: Position { line: 12, column: 33, }, end: Position { line: 12, column: 47, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "startSet", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 13, column: 16, }, end: Position { line: 13, column: 19, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "file", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "key", span: Span { start: Position { line: 13, column: 29, }, end: Position { line: 13, column: 32, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "file", span: Span { start: Position { line: 13, column: 35, }, end: Position { line: 13, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 13, column: 40, }, end: Position { line: 13, column: 43, }, }, }, ), ], default: None, }, ), }, ), Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "file", span: Span { start: Position { line: 13, column: 53, }, end: Position { line: 13, column: 57, }, }, }, ), ], span: Span { start: Position { line: 13, column: 28, }, end: Position { line: 13, column: 58, }, }, }, ), ], span: Span { start: Position { line: 13, column: 27, }, end: Position { line: 13, column: 60, }, }, }, ), span: Span { start: Position { line: 13, column: 21, }, end: Position { line: 13, column: 60, }, }, }, ), Identifier( Identifier { id: "urls", span: Span { start: Position { line: 13, column: 62, }, end: Position { line: 13, column: 66, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "operator", span: Span { start: Position { line: 14, column: 5, }, end: Position { line: 14, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "const", span: Span { start: Position { line: 14, column: 16, }, end: Position { line: 14, column: 21, }, }, }, ), arguments: [ List( List { elements: [], span: Span { start: Position { line: 14, column: 22, }, end: Position { line: 14, column: 25, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 48, }, end: Position { line: 15, column: 4, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "urls", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 17, column: 10, }, end: Position { line: 17, column: 13, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 17, column: 25, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "head", span: Span { start: Position { line: 17, column: 28, }, end: Position { line: 17, column: 32, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 34, }, end: Position { line: 17, column: 37, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "urls", span: Span { start: Position { line: 17, column: 38, }, end: Position { line: 17, column: 42, }, }, }, ), ], default: Some( List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 48, }, end: Position { line: 17, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 17, column: 52, }, end: Position { line: 17, column: 55, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 17, column: 46, }, end: Position { line: 17, column: 57, }, }, }, ), ), }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hash", span: Span { start: Position { line: 17, column: 60, }, end: Position { line: 17, column: 64, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 67, }, end: Position { line: 17, column: 70, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputHash", span: Span { start: Position { line: 17, column: 71, }, end: Position { line: 17, column: 81, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isPatch", span: Span { start: Position { line: 17, column: 83, }, end: Position { line: 17, column: 90, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 94, }, end: Position { line: 17, column: 97, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "postFetch", span: Span { start: Position { line: 17, column: 98, }, end: Position { line: 17, column: 107, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 111, }, end: Position { line: 17, column: 114, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "postFetch", span: Span { start: Position { line: 17, column: 115, }, end: Position { line: 17, column: 124, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 17, column: 128, }, end: Position { line: 17, column: 130, }, }, }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 133, }, end: Position { line: 17, column: 137, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 140, }, end: Position { line: 17, column: 143, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputHashAlgo", span: Span { start: Position { line: 17, column: 144, }, end: Position { line: 17, column: 158, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 17, column: 160, }, end: Position { line: 17, column: 164, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 17, column: 167, }, end: Position { line: 17, column: 170, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 17, column: 171, }, end: Position { line: 17, column: 175, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 17, column: 20, }, end: Position { line: 17, column: 178, }, }, }, ), span: Span { start: Position { line: 17, column: 15, }, end: Position { line: 17, column: 178, }, }, }, ), Identifier( Identifier { id: "fetchurlDependencies", span: Span { start: Position { line: 17, column: 180, }, end: Position { line: 17, column: 200, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fetchurlDependencies", span: Span { start: Position { line: 19, column: 3, }, end: Position { line: 19, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "filter", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 11, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 21, column: 13, }, end: Position { line: 21, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputHash", span: Span { start: Position { line: 21, column: 17, }, end: Position { line: 21, column: 27, }, }, }, ), ], default: Some( String( String_ { parts: [], span: Span { start: Position { line: 21, column: 31, }, end: Position { line: 21, column: 33, }, }, }, ), ), }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 21, column: 37, }, end: Position { line: 21, column: 39, }, }, }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 21, column: 43, }, end: Position { line: 21, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outputHashMode", span: Span { start: Position { line: 21, column: 47, }, end: Position { line: 21, column: 61, }, }, }, ), ], default: Some( String( String_ { parts: [ Raw( PartRaw { content: "flat", span: Span { start: Position { line: 21, column: 66, }, end: Position { line: 21, column: 70, }, }, }, ), ], span: Span { start: Position { line: 21, column: 65, }, end: Position { line: 21, column: 71, }, }, }, ), ), }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "flat", span: Span { start: Position { line: 21, column: 76, }, end: Position { line: 21, column: 80, }, }, }, ), ], span: Span { start: Position { line: 21, column: 75, }, end: Position { line: 21, column: 81, }, }, }, ), }, ), }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 22, column: 15, }, end: Position { line: 22, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 22, column: 21, }, end: Position { line: 22, column: 24, }, }, }, ), ], }, ), operator: LogicalOr, right: HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 22, column: 28, }, end: Position { line: 22, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "urls", span: Span { start: Position { line: 22, column: 34, }, end: Position { line: 22, column: 38, }, }, }, ), ], }, ), }, ), }, ), span: Span { start: Position { line: 21, column: 8, }, end: Position { line: 22, column: 39, }, }, }, ), Identifier( Identifier { id: "dependencies", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 19, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dependencies", span: Span { start: Position { line: 25, column: 3, }, end: Position { line: 25, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 25, column: 18, }, end: Position { line: 25, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 25, column: 26, }, end: Position { line: 25, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 25, column: 28, }, end: Position { line: 25, column: 33, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 25, column: 23, }, end: Position { line: 25, column: 33, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "genericClosure", span: Span { start: Position { line: 25, column: 36, }, end: Position { line: 25, column: 50, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "startSet", span: Span { start: Position { line: 26, column: 5, }, end: Position { line: 26, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 26, column: 16, }, end: Position { line: 26, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "keyDrv", span: Span { start: Position { line: 26, column: 20, }, end: Position { line: 26, column: 26, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "derivationsIn'", span: Span { start: Position { line: 26, column: 28, }, end: Position { line: 26, column: 42, }, }, }, ), arguments: [ Identifier( Identifier { id: "root", span: Span { start: Position { line: 26, column: 43, }, end: Position { line: 26, column: 47, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "operator", span: Span { start: Position { line: 27, column: 5, }, end: Position { line: 27, column: 13, }, }, }, ), ], to: Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "key", default: None, }, FunctionHeadDestructuredArgument { identifier: "value", default: None, }, ], }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 27, column: 32, }, end: Position { line: 27, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "keyDrv", span: Span { start: Position { line: 27, column: 36, }, end: Position { line: 27, column: 42, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "immediateDependenciesOf", span: Span { start: Position { line: 27, column: 44, }, end: Position { line: 27, column: 67, }, }, }, ), arguments: [ Identifier( Identifier { id: "value", span: Span { start: Position { line: 27, column: 68, }, end: Position { line: 27, column: 73, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 27, column: 16, }, end: Position { line: 27, column: 74, }, }, }, ), }, ), ], span: Span { start: Position { line: 25, column: 51, }, end: Position { line: 28, column: 4, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "derivationsIn'", span: Span { start: Position { line: 30, column: 3, }, end: Position { line: 30, column: 17, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "canEval", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 31, column: 17, }, end: Position { line: 31, column: 18, }, }, }, ), ], }, ), span: Span { start: Position { line: 31, column: 8, }, end: Position { line: 31, column: 18, }, }, }, ), then: List( List { elements: [], span: Span { start: Position { line: 31, column: 24, }, end: Position { line: 31, column: 26, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isDerivation", span: Span { start: Position { line: 32, column: 13, }, end: Position { line: 32, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 32, column: 26, }, end: Position { line: 32, column: 27, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 32, column: 33, }, end: Position { line: 32, column: 41, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "canEval", span: Span { start: Position { line: 32, column: 43, }, end: Position { line: 32, column: 50, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 32, column: 51, }, end: Position { line: 32, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "drvPath", span: Span { start: Position { line: 32, column: 53, }, end: Position { line: 32, column: 60, }, }, }, ), ], default: None, }, ), ], }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 32, column: 62, }, end: Position { line: 32, column: 63, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 33, column: 13, }, end: Position { line: 33, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 33, column: 20, }, end: Position { line: 33, column: 21, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 33, column: 27, }, end: Position { line: 33, column: 38, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 33, column: 40, }, end: Position { line: 33, column: 43, }, }, }, ), arguments: [ Identifier( Identifier { id: "derivationsIn'", span: Span { start: Position { line: 33, column: 44, }, end: Position { line: 33, column: 58, }, }, }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 33, column: 59, }, end: Position { line: 33, column: 60, }, }, }, ), ], }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isAttrs", span: Span { start: Position { line: 34, column: 13, }, end: Position { line: 34, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 34, column: 22, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 34, column: 28, }, end: Position { line: 34, column: 39, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 34, column: 41, }, end: Position { line: 34, column: 55, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "addErrorContext", span: Span { start: Position { line: 34, column: 63, }, end: Position { line: 34, column: 78, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "while finding tarballs in '", span: Span { start: Position { line: 34, column: 80, }, end: Position { line: 34, column: 111, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "n", span: Span { start: Position { line: 34, column: 109, }, end: Position { line: 34, column: 110, }, }, }, ), }, ), Raw( PartRaw { content: "':", span: Span { start: Position { line: 34, column: 80, }, end: Position { line: 34, column: 113, }, }, }, ), ], span: Span { start: Position { line: 34, column: 79, }, end: Position { line: 34, column: 114, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "derivationsIn'", span: Span { start: Position { line: 34, column: 116, }, end: Position { line: 34, column: 130, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 34, column: 131, }, end: Position { line: 34, column: 132, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 34, column: 60, }, end: Position { line: 34, column: 133, }, }, }, ), span: Span { start: Position { line: 34, column: 57, }, end: Position { line: 34, column: 133, }, }, }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 34, column: 135, }, end: Position { line: 34, column: 136, }, }, }, ), ], }, ), ], }, ), else_: List( List { elements: [], span: Span { start: Position { line: 35, column: 10, }, end: Position { line: 35, column: 13, }, }, }, ), span: Span { start: Position { line: 34, column: 10, }, end: Position { line: 35, column: 13, }, }, }, ), span: Span { start: Position { line: 33, column: 10, }, end: Position { line: 35, column: 13, }, }, }, ), span: Span { start: Position { line: 32, column: 10, }, end: Position { line: 35, column: 13, }, }, }, ), span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 35, column: 13, }, }, }, ), span: Span { start: Position { line: 30, column: 20, }, end: Position { line: 35, column: 13, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "keyDrv", span: Span { start: Position { line: 37, column: 3, }, end: Position { line: 37, column: 9, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "canEval", span: Span { start: Position { line: 37, column: 20, }, end: Position { line: 37, column: 27, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 37, column: 28, }, end: Position { line: 37, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "drvPath", span: Span { start: Position { line: 37, column: 32, }, end: Position { line: 37, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "key", span: Span { start: Position { line: 37, column: 47, }, end: Position { line: 37, column: 50, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 37, column: 53, }, end: Position { line: 37, column: 56, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "drvPath", span: Span { start: Position { line: 37, column: 57, }, end: Position { line: 37, column: 64, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 37, column: 66, }, end: Position { line: 37, column: 71, }, }, }, ), ], to: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 37, column: 74, }, end: Position { line: 37, column: 77, }, }, }, ), }, ), ], span: Span { start: Position { line: 37, column: 45, }, end: Position { line: 37, column: 80, }, }, }, ), else_: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 37, column: 86, }, end: Position { line: 37, column: 89, }, }, }, ), span: Span { start: Position { line: 37, column: 17, }, end: Position { line: 37, column: 89, }, }, }, ), span: Span { start: Position { line: 37, column: 12, }, end: Position { line: 37, column: 89, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "immediateDependenciesOf", span: Span { start: Position { line: 39, column: 3, }, end: Position { line: 39, column: 26, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "drv", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 40, column: 5, }, end: Position { line: 40, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 40, column: 18, }, end: Position { line: 40, column: 32, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "n", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "v", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "derivationsIn", span: Span { start: Position { line: 40, column: 40, }, end: Position { line: 40, column: 53, }, }, }, ), arguments: [ Identifier( Identifier { id: "v", span: Span { start: Position { line: 40, column: 54, }, end: Position { line: 40, column: 55, }, }, }, ), ], }, ), span: Span { start: Position { line: 40, column: 37, }, end: Position { line: 40, column: 55, }, }, }, ), span: Span { start: Position { line: 40, column: 34, }, end: Position { line: 40, column: 55, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "removeAttrs", span: Span { start: Position { line: 40, column: 58, }, end: Position { line: 40, column: 69, }, }, }, ), arguments: [ Identifier( Identifier { id: "drv", span: Span { start: Position { line: 40, column: 70, }, end: Position { line: 40, column: 73, }, }, }, ), BinaryOperation( BinaryOperation { left: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 40, column: 77, }, end: Position { line: 40, column: 81, }, }, }, ), ], span: Span { start: Position { line: 40, column: 76, }, end: Position { line: 40, column: 82, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "passthru", span: Span { start: Position { line: 40, column: 84, }, end: Position { line: 40, column: 92, }, }, }, ), ], span: Span { start: Position { line: 40, column: 83, }, end: Position { line: 40, column: 93, }, }, }, ), ], span: Span { start: Position { line: 40, column: 75, }, end: Position { line: 40, column: 94, }, }, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionals", span: Span { start: Position { line: 40, column: 98, }, end: Position { line: 40, column: 107, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 40, column: 109, }, end: Position { line: 40, column: 112, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "passthru", span: Span { start: Position { line: 40, column: 113, }, end: Position { line: 40, column: 121, }, }, }, ), ], }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrNames", span: Span { start: Position { line: 40, column: 124, }, end: Position { line: 40, column: 133, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "drv", span: Span { start: Position { line: 40, column: 134, }, end: Position { line: 40, column: 137, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "passthru", span: Span { start: Position { line: 40, column: 138, }, end: Position { line: 40, column: 146, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), }, ), ], }, ), ], }, ), ], }, ), span: Span { start: Position { line: 39, column: 29, }, end: Position { line: 40, column: 150, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "derivationsIn", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 16, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: IfThenElse( IfThenElse { predicate: UnaryOperation( UnaryOperation { operator: Not, operand: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "canEval", span: Span { start: Position { line: 43, column: 9, }, end: Position { line: 43, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 43, column: 17, }, end: Position { line: 43, column: 18, }, }, }, ), ], }, ), span: Span { start: Position { line: 43, column: 8, }, end: Position { line: 43, column: 18, }, }, }, ), then: List( List { elements: [], span: Span { start: Position { line: 43, column: 24, }, end: Position { line: 43, column: 26, }, }, }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isDerivation", span: Span { start: Position { line: 44, column: 13, }, end: Position { line: 44, column: 25, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 44, column: 26, }, end: Position { line: 44, column: 27, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 44, column: 33, }, end: Position { line: 44, column: 41, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "canEval", span: Span { start: Position { line: 44, column: 43, }, end: Position { line: 44, column: 50, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "x", span: Span { start: Position { line: 44, column: 51, }, end: Position { line: 44, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "drvPath", span: Span { start: Position { line: 44, column: 53, }, end: Position { line: 44, column: 60, }, }, }, ), ], default: None, }, ), ], }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 44, column: 62, }, end: Position { line: 44, column: 63, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 45, column: 13, }, end: Position { line: 45, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 45, column: 20, }, end: Position { line: 45, column: 21, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 38, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 45, column: 40, }, end: Position { line: 45, column: 43, }, }, }, ), arguments: [ Identifier( Identifier { id: "derivationsIn", span: Span { start: Position { line: 45, column: 44, }, end: Position { line: 45, column: 57, }, }, }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 45, column: 58, }, end: Position { line: 45, column: 59, }, }, }, ), ], }, ), ], }, ), else_: List( List { elements: [], span: Span { start: Position { line: 46, column: 10, }, end: Position { line: 46, column: 13, }, }, }, ), span: Span { start: Position { line: 45, column: 10, }, end: Position { line: 46, column: 13, }, }, }, ), span: Span { start: Position { line: 44, column: 10, }, end: Position { line: 46, column: 13, }, }, }, ), span: Span { start: Position { line: 43, column: 5, }, end: Position { line: 46, column: 13, }, }, }, ), span: Span { start: Position { line: 42, column: 19, }, end: Position { line: 46, column: 13, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "canEval", span: Span { start: Position { line: 48, column: 3, }, end: Position { line: 48, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "val", }, ), body: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 48, column: 19, }, end: Position { line: 48, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "tryEval", span: Span { start: Position { line: 48, column: 28, }, end: Position { line: 48, column: 35, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "val", span: Span { start: Position { line: 48, column: 36, }, end: Position { line: 48, column: 39, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "success", span: Span { start: Position { line: 48, column: 41, }, end: Position { line: 48, column: 48, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 48, column: 48, }, }, }, ), }, ), ], target: Identifier( Identifier { id: "uniqueUrls", span: Span { start: Position { line: 50, column: 4, }, end: Position { line: 50, column: 14, }, }, }, ), span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 50, column: 14, }, }, }, ), span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 50, column: 14, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 50, column: 14, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 50, column: 14, }, }, }, )