Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: RightAt( "args", ), arguments: [ FunctionHeadDestructuredArgument { identifier: "maintainer", default: None, }, FunctionHeadDestructuredArgument { identifier: "localSystem", default: Some( Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 2, column: 19, }, end: Position { line: 2, column: 25, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "args", span: Span { start: Position { line: 2, column: 28, }, end: Position { line: 2, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 2, column: 33, }, end: Position { line: 2, column: 39, }, }, }, ), ], default: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 2, column: 43, }, end: Position { line: 2, column: 51, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "currentSystem", span: Span { start: Position { line: 2, column: 52, }, end: Position { line: 2, column: 65, }, }, }, ), ], default: None, }, ), ), }, ), }, ), ], span: Span { start: Position { line: 2, column: 17, }, end: Position { line: 2, column: 68, }, }, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "system", default: Some( PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "localSystem", span: Span { start: Position { line: 3, column: 12, }, end: Position { line: 3, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 3, column: 24, }, end: Position { line: 3, column: 30, }, }, }, ), ], default: None, }, ), ), }, FunctionHeadDestructuredArgument { identifier: "crossSystem", default: Some( Identifier( Identifier { id: "localSystem", span: Span { start: Position { line: 4, column: 17, }, end: Position { line: 4, column: 28, }, }, }, ), ), }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 7, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 15, column: 10, }, end: Position { line: 15, column: 16, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "./../../default.nix", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 36, }, }, }, ), ], span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 36, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "removeAttrs", span: Span { start: Position { line: 15, column: 38, }, end: Position { line: 15, column: 49, }, }, }, ), arguments: [ Identifier( Identifier { id: "args", span: Span { start: Position { line: 15, column: 50, }, end: Position { line: 15, column: 54, }, }, }, ), List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "maintainer", span: Span { start: Position { line: 15, column: 58, }, end: Position { line: 15, column: 68, }, }, }, ), ], span: Span { start: Position { line: 15, column: 57, }, end: Position { line: 15, column: 69, }, }, }, ), ], span: Span { start: Position { line: 15, column: 55, }, end: Position { line: 15, column: 71, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainer_", span: Span { start: Position { line: 16, column: 3, }, end: Position { line: 16, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 16, column: 17, }, end: Position { line: 16, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 16, column: 22, }, end: Position { line: 16, column: 25, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 16, column: 26, }, end: Position { line: 16, column: 37, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "maintainer", span: Span { start: Position { line: 16, column: 40, }, end: Position { line: 16, column: 50, }, }, }, ), }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "packagesWith", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "cond", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "return", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "set", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 6, }, end: Position { line: 18, column: 10, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 18, column: 11, }, end: Position { line: 18, column: 14, }, }, }, ), Raw( PartRaw { content: "flatten", span: Span { start: Position { line: 18, column: 15, }, end: Position { line: 18, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 19, column: 8, }, end: Position { line: 19, column: 12, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 19, column: 13, }, end: Position { line: 19, column: 16, }, }, }, ), Raw( PartRaw { content: "mapAttrsToList", span: Span { start: Position { line: 19, column: 17, }, end: Position { line: 19, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "result", span: Span { start: Position { line: 22, column: 13, }, end: Position { line: 22, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 22, column: 22, }, end: Position { line: 22, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "tryEval", span: Span { start: Position { line: 22, column: 31, }, end: Position { line: 22, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 24, column: 20, }, end: Position { line: 24, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "lib", span: Span { start: Position { line: 24, column: 25, }, end: Position { line: 24, column: 28, }, }, }, ), Raw( PartRaw { content: "isDerivation", span: Span { start: Position { line: 24, column: 29, }, end: Position { line: 24, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 24, column: 42, }, end: Position { line: 24, column: 45, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "cond", span: Span { start: Position { line: 24, column: 49, }, end: Position { line: 24, column: 53, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 24, column: 54, }, end: Position { line: 24, column: 58, }, }, }, ), Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 24, column: 59, }, end: Position { line: 24, column: 62, }, }, }, ), ], }, ), }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 28, column: 19, }, end: Position { line: 28, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "seq", span: Span { start: Position { line: 28, column: 28, }, end: Position { line: 28, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 28, column: 32, }, end: Position { line: 28, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "outPath", span: Span { start: Position { line: 28, column: 36, }, end: Position { line: 28, column: 43, }, }, }, ), ], default: None, }, ), List( List { elements: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "return", span: Span { start: Position { line: 29, column: 24, }, end: Position { line: 29, column: 30, }, }, }, ), arguments: [ Identifier( Identifier { id: "name", span: Span { start: Position { line: 29, column: 31, }, end: Position { line: 29, column: 35, }, }, }, ), Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 29, column: 36, }, end: Position { line: 29, column: 39, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 42, }, }, }, ), ], }, ), else_: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 30, column: 25, }, end: Position { line: 30, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "recurseForDerivations", span: Span { start: Position { line: 30, column: 29, }, end: Position { line: 30, column: 50, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 30, column: 54, }, end: Position { line: 30, column: 59, }, }, }, ), ), }, ), operator: LogicalOr, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 30, column: 63, }, end: Position { line: 30, column: 66, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "recurseForRelease", span: Span { start: Position { line: 30, column: 67, }, end: Position { line: 30, column: 84, }, }, }, ), ], default: Some( Identifier( Identifier { id: "false", span: Span { start: Position { line: 30, column: 88, }, end: Position { line: 30, column: 93, }, }, }, ), ), }, ), }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "packagesWith", span: Span { start: Position { line: 31, column: 22, }, end: Position { line: 31, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "cond", span: Span { start: Position { line: 31, column: 35, }, end: Position { line: 31, column: 39, }, }, }, ), Identifier( Identifier { id: "return", span: Span { start: Position { line: 31, column: 40, }, end: Position { line: 31, column: 46, }, }, }, ), Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 31, column: 47, }, end: Position { line: 31, column: 50, }, }, }, ), ], }, ), else_: List( List { elements: [], span: Span { start: Position { line: 32, column: 22, }, end: Position { line: 32, column: 25, }, }, }, ), span: Span { start: Position { line: 30, column: 22, }, end: Position { line: 32, column: 25, }, }, }, ), span: Span { start: Position { line: 24, column: 17, }, end: Position { line: 32, column: 25, }, }, }, ), ], }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "result", span: Span { start: Position { line: 35, column: 14, }, end: Position { line: 35, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "success", span: Span { start: Position { line: 35, column: 21, }, end: Position { line: 35, column: 28, }, }, }, ), ], default: None, }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "result", span: Span { start: Position { line: 35, column: 34, }, end: Position { line: 35, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 35, column: 41, }, end: Position { line: 35, column: 46, }, }, }, ), ], default: None, }, ), else_: List( List { elements: [], span: Span { start: Position { line: 36, column: 16, }, end: Position { line: 36, column: 19, }, }, }, ), span: Span { start: Position { line: 35, column: 11, }, end: Position { line: 36, column: 19, }, }, }, ), span: Span { start: Position { line: 21, column: 11, }, end: Position { line: 36, column: 19, }, }, }, ), span: Span { start: Position { line: 20, column: 16, }, end: Position { line: 36, column: 19, }, }, }, ), span: Span { start: Position { line: 20, column: 10, }, end: Position { line: 36, column: 19, }, }, }, ), Identifier( Identifier { id: "set", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 12, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 17, column: 32, }, end: Position { line: 40, column: 6, }, }, }, ), span: Span { start: Position { line: 17, column: 24, }, end: Position { line: 40, column: 6, }, }, }, ), span: Span { start: Position { line: 17, column: 18, }, end: Position { line: 40, column: 6, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "packagesWith", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 42, column: 13, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 45, column: 10, }, end: Position { line: 45, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasAttr", span: Span { start: Position { line: 45, column: 19, }, end: Position { line: 45, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 45, column: 28, }, end: Position { line: 45, column: 32, }, }, }, ), ], span: Span { start: Position { line: 45, column: 27, }, end: Position { line: 45, column: 33, }, }, }, ), Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 45, column: 34, }, end: Position { line: 45, column: 37, }, }, }, ), ], }, ), operator: LogicalAnd, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 45, column: 41, }, end: Position { line: 45, column: 49, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasAttr", span: Span { start: Position { line: 45, column: 50, }, end: Position { line: 45, column: 57, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 45, column: 59, }, end: Position { line: 45, column: 70, }, }, }, ), ], span: Span { start: Position { line: 45, column: 58, }, end: Position { line: 45, column: 71, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 45, column: 72, }, end: Position { line: 45, column: 75, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 45, column: 76, }, end: Position { line: 45, column: 80, }, }, }, ), ], default: None, }, ), ], }, ), }, ), then: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isList", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 47, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 47, column: 32, }, end: Position { line: 47, column: 36, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 47, column: 37, }, end: Position { line: 47, column: 48, }, }, }, ), ], default: None, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 48, column: 14, }, end: Position { line: 48, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "elem", span: Span { start: Position { line: 48, column: 23, }, end: Position { line: 48, column: 27, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "maintainer_", span: Span { start: Position { line: 48, column: 28, }, end: Position { line: 48, column: 39, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 48, column: 40, }, end: Position { line: 48, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 48, column: 44, }, end: Position { line: 48, column: 48, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 48, column: 49, }, end: Position { line: 48, column: 60, }, }, }, ), ], default: None, }, ), ], }, ), else_: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "maintainer_", span: Span { start: Position { line: 49, column: 14, }, end: Position { line: 49, column: 25, }, }, }, ), operator: EqualTo, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 49, column: 29, }, end: Position { line: 49, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 49, column: 33, }, end: Position { line: 49, column: 37, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 49, column: 38, }, end: Position { line: 49, column: 49, }, }, }, ), ], default: None, }, ), }, ), span: Span { start: Position { line: 47, column: 9, }, end: Position { line: 49, column: 49, }, }, }, ), else_: Identifier( Identifier { id: "false", span: Span { start: Position { line: 51, column: 12, }, end: Position { line: 51, column: 17, }, }, }, ), span: Span { start: Position { line: 45, column: 7, }, end: Position { line: 51, column: 17, }, }, }, ), span: Span { start: Position { line: 43, column: 10, }, end: Position { line: 52, column: 6, }, }, }, ), span: Span { start: Position { line: 43, column: 4, }, end: Position { line: 52, column: 6, }, }, }, ), Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkg", }, ), body: Identifier( Identifier { id: "pkg", span: Span { start: Position { line: 54, column: 15, }, end: Position { line: 54, column: 18, }, }, }, ), span: Span { start: Position { line: 54, column: 10, }, end: Position { line: 54, column: 18, }, }, }, ), span: Span { start: Position { line: 54, column: 4, }, end: Position { line: 54, column: 18, }, }, }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 55, column: 3, }, end: Position { line: 55, column: 7, }, }, }, ), ], }, ), span: Span { start: Position { line: 14, column: 1, }, end: Position { line: 55, column: 7, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 55, column: 7, }, }, }, )