Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "options", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 9, }, end: Position { line: 6, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "opt", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "options", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isConfig", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 11, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 13, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isAttrs", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 21, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 10, column: 22, }, end: Position { line: 10, column: 23, }, }, }, ), ], }, ), operator: LogicalOr, right: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 27, }, end: Position { line: 10, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isFunction", span: Span { start: Position { line: 10, column: 31, }, end: Position { line: 10, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 10, column: 42, }, end: Position { line: 10, column: 43, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 9, column: 14, }, end: Position { line: 10, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "optCall", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "f", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 8, }, end: Position { line: 13, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isFunction", span: Span { start: Position { line: 13, column: 12, }, end: Position { line: 13, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "f", span: Span { start: Position { line: 13, column: 23, }, end: Position { line: 13, column: 24, }, }, }, ), ], }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "f", span: Span { start: Position { line: 14, column: 10, }, end: Position { line: 14, column: 11, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 14, column: 12, }, end: Position { line: 14, column: 13, }, }, }, ), ], }, ), else_: Identifier( Identifier { id: "f", span: Span { start: Position { line: 15, column: 10, }, end: Position { line: 15, column: 11, }, }, }, ), span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 15, column: 11, }, }, }, ), span: Span { start: Position { line: 12, column: 16, }, end: Position { line: 15, column: 11, }, }, }, ), span: Span { start: Position { line: 12, column: 13, }, end: Position { line: 15, column: 11, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "mergeConfig", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 14, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "lhs_", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "rhs_", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "lhs", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 19, column: 13, }, end: Position { line: 19, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "lhs_", span: Span { start: Position { line: 19, column: 21, }, end: Position { line: 19, column: 25, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 19, column: 36, }, end: Position { line: 19, column: 40, }, }, }, ), ], span: Span { start: Position { line: 19, column: 27, }, end: Position { line: 19, column: 41, }, }, }, ), ], span: Span { start: Position { line: 19, column: 26, }, end: Position { line: 19, column: 43, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "rhs", span: Span { start: Position { line: 20, column: 7, }, end: Position { line: 20, column: 10, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 20, column: 13, }, end: Position { line: 20, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "rhs_", span: Span { start: Position { line: 20, column: 21, }, end: Position { line: 20, column: 25, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 20, column: 36, }, end: Position { line: 20, column: 40, }, }, }, ), ], span: Span { start: Position { line: 20, column: 27, }, end: Position { line: 20, column: 41, }, }, }, ), ], span: Span { start: Position { line: 20, column: 26, }, end: Position { line: 20, column: 43, }, }, }, ), ], }, ), }, ), ], target: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "recursiveUpdate", span: Span { start: Position { line: 22, column: 5, }, end: Position { line: 22, column: 20, }, }, }, ), arguments: [ Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 22, column: 21, }, end: Position { line: 22, column: 24, }, }, }, ), Identifier( Identifier { id: "rhs", span: Span { start: Position { line: 22, column: 25, }, end: Position { line: 22, column: 28, }, }, }, ), ], }, ), operator: Update, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 23, column: 5, }, end: Position { line: 23, column: 18, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 23, column: 20, }, end: Position { line: 23, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "packageOverrides", span: Span { start: Position { line: 23, column: 26, }, end: Position { line: 23, column: 42, }, }, }, ), ], }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "packageOverrides", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 23, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkgs", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 25, column: 17, }, end: Position { line: 25, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "packageOverrides", span: Span { start: Position { line: 25, column: 21, }, end: Position { line: 25, column: 37, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 25, column: 38, }, end: Position { line: 25, column: 42, }, }, }, ), ], }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 26, column: 9, }, end: Position { line: 26, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrByPath", span: Span { start: Position { line: 26, column: 18, }, end: Position { line: 26, column: 28, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "packageOverrides", span: Span { start: Position { line: 26, column: 31, }, end: Position { line: 26, column: 47, }, }, }, ), ], span: Span { start: Position { line: 26, column: 30, }, end: Position { line: 26, column: 48, }, }, }, ), ], span: Span { start: Position { line: 26, column: 29, }, end: Position { line: 26, column: 49, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 26, column: 51, }, end: Position { line: 26, column: 53, }, }, }, ), Identifier( Identifier { id: "rhs", span: Span { start: Position { line: 26, column: 55, }, end: Position { line: 26, column: 58, }, }, }, ), ], }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 26, column: 60, }, end: Position { line: 26, column: 64, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 24, column: 26, }, end: Position { line: 26, column: 64, }, }, }, ), }, ), ], span: Span { start: Position { line: 23, column: 44, }, end: Position { line: 27, column: 6, }, }, }, ), ], }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalAttrs", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 18, }, }, }, ), arguments: [ HasAttribute( HasAttribute { expression: Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 28, column: 20, }, end: Position { line: 28, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "perlPackageOverrides", span: Span { start: Position { line: 28, column: 26, }, end: Position { line: 28, column: 46, }, }, }, ), ], }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "perlPackageOverrides", span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 27, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "pkgs", }, ), body: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lhs", span: Span { start: Position { line: 30, column: 17, }, end: Position { line: 30, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "perlPackageOverrides", span: Span { start: Position { line: 30, column: 21, }, end: Position { line: 30, column: 41, }, }, }, ), ], default: None, }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 30, column: 42, }, end: Position { line: 30, column: 46, }, }, }, ), ], }, ), operator: Update, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optCall", span: Span { start: Position { line: 31, column: 9, }, end: Position { line: 31, column: 16, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrByPath", span: Span { start: Position { line: 31, column: 18, }, end: Position { line: 31, column: 28, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "perlPackageOverrides", span: Span { start: Position { line: 31, column: 31, }, end: Position { line: 31, column: 51, }, }, }, ), ], span: Span { start: Position { line: 31, column: 30, }, end: Position { line: 31, column: 52, }, }, }, ), ], span: Span { start: Position { line: 31, column: 29, }, end: Position { line: 31, column: 53, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 31, column: 55, }, end: Position { line: 31, column: 57, }, }, }, ), Identifier( Identifier { id: "rhs", span: Span { start: Position { line: 31, column: 59, }, end: Position { line: 31, column: 62, }, }, }, ), ], }, ), Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 31, column: 64, }, end: Position { line: 31, column: 68, }, }, }, ), ], }, ), }, ), span: Span { start: Position { line: 29, column: 30, }, end: Position { line: 31, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 28, column: 48, }, end: Position { line: 32, column: 6, }, }, }, ), ], }, ), }, ), }, ), span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 32, column: 6, }, }, }, ), span: Span { start: Position { line: 17, column: 23, }, end: Position { line: 32, column: 6, }, }, }, ), span: Span { start: Position { line: 17, column: 17, }, end: Position { line: 32, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configType", span: Span { start: Position { line: 34, column: 3, }, end: Position { line: 34, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionType", span: Span { start: Position { line: 34, column: 16, }, end: Position { line: 34, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 35, column: 5, }, end: Position { line: 35, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs-config", span: Span { start: Position { line: 35, column: 13, }, end: Position { line: 35, column: 27, }, }, }, ), ], span: Span { start: Position { line: 35, column: 12, }, end: Position { line: 35, column: 28, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs config", span: Span { start: Position { line: 36, column: 20, }, end: Position { line: 36, column: 34, }, }, }, ), ], span: Span { start: Position { line: 36, column: 19, }, end: Position { line: 36, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check", span: Span { start: Position { line: 37, column: 5, }, end: Position { line: 37, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "x", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "traceXIfNot", span: Span { start: Position { line: 38, column: 11, }, end: Position { line: 38, column: 22, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "c", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "c", span: Span { start: Position { line: 39, column: 16, }, end: Position { line: 39, column: 17, }, }, }, ), arguments: [ Identifier( Identifier { id: "x", span: Span { start: Position { line: 39, column: 18, }, end: Position { line: 39, column: 19, }, }, }, ), ], }, ), then: Identifier( Identifier { id: "true", span: Span { start: Position { line: 39, column: 25, }, end: Position { line: 39, column: 29, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 40, column: 18, }, end: Position { line: 40, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "traceSeqN", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 31, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "1", span: Span { start: Position { line: 40, column: 32, }, end: Position { line: 40, column: 33, }, }, }, ), Identifier( Identifier { id: "x", span: Span { start: Position { line: 40, column: 34, }, end: Position { line: 40, column: 35, }, }, }, ), Identifier( Identifier { id: "false", span: Span { start: Position { line: 40, column: 36, }, end: Position { line: 40, column: 41, }, }, }, ), ], }, ), span: Span { start: Position { line: 39, column: 13, }, end: Position { line: 40, column: 41, }, }, }, ), span: Span { start: Position { line: 38, column: 25, }, end: Position { line: 40, column: 41, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "traceXIfNot", span: Span { start: Position { line: 41, column: 10, }, end: Position { line: 41, column: 21, }, }, }, ), arguments: [ Identifier( Identifier { id: "isConfig", span: Span { start: Position { line: 41, column: 22, }, end: Position { line: 41, column: 30, }, }, }, ), ], }, ), span: Span { start: Position { line: 38, column: 7, }, end: Position { line: 41, column: 30, }, }, }, ), span: Span { start: Position { line: 37, column: 13, }, end: Position { line: 41, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "merge", span: Span { start: Position { line: 42, column: 5, }, end: Position { line: 42, column: 10, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "args", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "foldr", span: Span { start: Position { line: 42, column: 19, }, end: Position { line: 42, column: 24, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "def", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mergeConfig", span: Span { start: Position { line: 42, column: 31, }, end: Position { line: 42, column: 42, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "def", span: Span { start: Position { line: 42, column: 43, }, end: Position { line: 42, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "value", span: Span { start: Position { line: 42, column: 47, }, end: Position { line: 42, column: 52, }, }, }, ), ], default: None, }, ), ], }, ), span: Span { start: Position { line: 42, column: 26, }, end: Position { line: 42, column: 52, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 42, column: 54, }, end: Position { line: 42, column: 56, }, }, }, ), ], }, ), span: Span { start: Position { line: 42, column: 13, }, end: Position { line: 42, column: 56, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 29, }, end: Position { line: 43, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "overlayType", span: Span { start: Position { line: 45, column: 3, }, end: Position { line: 45, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionType", span: Span { start: Position { line: 45, column: 17, }, end: Position { line: 45, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 46, column: 5, }, end: Position { line: 46, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs-overlay", span: Span { start: Position { line: 46, column: 13, }, end: Position { line: 46, column: 28, }, }, }, ), ], span: Span { start: Position { line: 46, column: 12, }, end: Position { line: 46, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 47, column: 5, }, end: Position { line: 47, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs overlay", span: Span { start: Position { line: 47, column: 20, }, end: Position { line: 47, column: 35, }, }, }, ), ], span: Span { start: Position { line: 47, column: 19, }, end: Position { line: 47, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check", span: Span { start: Position { line: 48, column: 5, }, end: Position { line: 48, column: 10, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 48, column: 13, }, end: Position { line: 48, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isFunction", span: Span { start: Position { line: 48, column: 17, }, end: Position { line: 48, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "merge", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 10, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 49, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mergeOneOption", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 31, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 45, column: 30, }, end: Position { line: 50, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgsType", span: Span { start: Position { line: 52, column: 3, }, end: Position { line: 52, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionType", span: Span { start: Position { line: 52, column: 14, }, end: Position { line: 52, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 53, column: 5, }, end: Position { line: 53, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 53, column: 13, }, end: Position { line: 53, column: 20, }, }, }, ), ], span: Span { start: Position { line: 53, column: 12, }, end: Position { line: 53, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 54, column: 5, }, end: Position { line: 54, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "An evaluation of Nixpkgs; the top level attribute set of packages", span: Span { start: Position { line: 54, column: 20, }, end: Position { line: 54, column: 85, }, }, }, ), ], span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 86, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "check", span: Span { start: Position { line: 55, column: 5, }, end: Position { line: 55, column: 10, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 55, column: 13, }, end: Position { line: 55, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "isAttrs", span: Span { start: Position { line: 55, column: 22, }, end: Position { line: 55, column: 29, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 52, column: 27, }, end: Position { line: 56, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "constructedByMe", span: Span { start: Position { line: 61, column: 3, }, end: Position { line: 61, column: 18, }, }, }, ), ], to: UnaryOperation( UnaryOperation { operator: Not, operand: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 61, column: 22, }, end: Position { line: 61, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 61, column: 26, }, end: Position { line: 61, column: 30, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 61, column: 31, }, end: Position { line: 61, column: 40, }, }, }, ), ], default: None, }, ), span: Span { start: Position { line: 61, column: 21, }, end: Position { line: 61, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hasBuildPlatform", span: Span { start: Position { line: 63, column: 3, }, end: Position { line: 63, column: 19, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 63, column: 22, }, end: Position { line: 63, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 63, column: 26, }, end: Position { line: 63, column: 39, }, }, }, ), Raw( PartRaw { content: "highestPrio", span: Span { start: Position { line: 63, column: 40, }, end: Position { line: 63, column: 51, }, }, }, ), ], default: None, }, ), operator: LessThan, right: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionDefault", span: Span { start: Position { line: 63, column: 55, }, end: Position { line: 63, column: 70, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 63, column: 71, }, end: Position { line: 63, column: 73, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 63, column: 75, }, end: Position { line: 63, column: 83, }, }, }, ), ], default: None, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hasHostPlatform", span: Span { start: Position { line: 64, column: 3, }, end: Position { line: 64, column: 18, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 64, column: 21, }, end: Position { line: 64, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 64, column: 25, }, end: Position { line: 64, column: 37, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 64, column: 38, }, end: Position { line: 64, column: 47, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hasPlatform", span: Span { start: Position { line: 65, column: 3, }, end: Position { line: 65, column: 14, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "hasHostPlatform", span: Span { start: Position { line: 65, column: 17, }, end: Position { line: 65, column: 32, }, }, }, ), operator: LogicalOr, right: Identifier( Identifier { id: "hasBuildPlatform", span: Span { start: Position { line: 65, column: 36, }, end: Position { line: 65, column: 52, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hostPlatformLine", span: Span { start: Position { line: 68, column: 3, }, end: Position { line: 68, column: 19, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 68, column: 22, }, end: Position { line: 68, column: 36, }, }, }, ), arguments: [ Identifier( Identifier { id: "hasHostPlatform", span: Span { start: Position { line: 68, column: 37, }, end: Position { line: 68, column: 52, }, }, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOptionWithDefLocs", span: Span { start: Position { line: 68, column: 56, }, end: Position { line: 68, column: 77, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 68, column: 78, }, end: Position { line: 68, column: 81, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 68, column: 82, }, end: Position { line: 68, column: 94, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 68, column: 53, }, end: Position { line: 68, column: 96, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildPlatformLine", span: Span { start: Position { line: 69, column: 3, }, end: Position { line: 69, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 69, column: 23, }, end: Position { line: 69, column: 37, }, }, }, ), arguments: [ Identifier( Identifier { id: "hasBuildPlatform", span: Span { start: Position { line: 69, column: 38, }, end: Position { line: 69, column: 54, }, }, }, ), String( String_ { parts: [ Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "showOptionWithDefLocs", span: Span { start: Position { line: 69, column: 58, }, end: Position { line: 69, column: 79, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 69, column: 80, }, end: Position { line: 69, column: 83, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 69, column: 84, }, end: Position { line: 69, column: 97, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 69, column: 55, }, end: Position { line: 69, column: 99, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "platformLines", span: Span { start: Position { line: 70, column: 3, }, end: Position { line: 70, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 70, column: 19, }, end: Position { line: 70, column: 33, }, }, }, ), arguments: [ Identifier( Identifier { id: "hasPlatform", span: Span { start: Position { line: 70, column: 34, }, end: Position { line: 70, column: 45, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Your system configuration configures nixpkgs with platform parameters:\n", span: Span { start: Position { line: 71, column: 1, }, end: Position { line: 72, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "hostPlatformLine", span: Span { start: Position { line: 72, column: 7, }, end: Position { line: 72, column: 23, }, }, }, ), }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "buildPlatformLine", span: Span { start: Position { line: 73, column: 8, }, end: Position { line: 73, column: 25, }, }, }, ), }, ), ], span: Span { start: Position { line: 70, column: 46, }, end: Position { line: 74, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "legacyOptionsDefined", span: Span { start: Position { line: 76, column: 3, }, end: Position { line: 76, column: 23, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 77, column: 5, }, end: Position { line: 77, column: 13, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 77, column: 15, }, end: Position { line: 77, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 77, column: 19, }, end: Position { line: 77, column: 30, }, }, }, ), Raw( PartRaw { content: "highestPrio", span: Span { start: Position { line: 77, column: 31, }, end: Position { line: 77, column: 42, }, }, }, ), ], default: None, }, ), operator: LessThan, right: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkDefault", span: Span { start: Position { line: 77, column: 46, }, end: Position { line: 77, column: 55, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 77, column: 56, }, end: Position { line: 77, column: 58, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 77, column: 60, }, end: Position { line: 77, column: 68, }, }, }, ), ], default: None, }, ), }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 77, column: 70, }, end: Position { line: 77, column: 73, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 77, column: 74, }, end: Position { line: 77, column: 80, }, }, }, ), ], default: None, }, ), ], }, ), operator: Concatenation, right: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 78, column: 8, }, end: Position { line: 78, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 78, column: 18, }, end: Position { line: 78, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 78, column: 22, }, end: Position { line: 78, column: 33, }, }, }, ), Raw( PartRaw { content: "highestPrio", span: Span { start: Position { line: 78, column: 34, }, end: Position { line: 78, column: 45, }, }, }, ), ], default: None, }, ), operator: LessThan, right: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionDefault", span: Span { start: Position { line: 78, column: 49, }, end: Position { line: 78, column: 64, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 78, column: 65, }, end: Position { line: 78, column: 67, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 78, column: 69, }, end: Position { line: 78, column: 77, }, }, }, ), ], default: None, }, ), }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 78, column: 79, }, end: Position { line: 78, column: 82, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 78, column: 83, }, end: Position { line: 78, column: 94, }, }, }, ), ], default: None, }, ), ], }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 79, column: 8, }, end: Position { line: 79, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 79, column: 18, }, end: Position { line: 79, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 79, column: 22, }, end: Position { line: 79, column: 33, }, }, }, ), Raw( PartRaw { content: "highestPrio", span: Span { start: Position { line: 79, column: 34, }, end: Position { line: 79, column: 45, }, }, }, ), ], default: None, }, ), operator: LessThan, right: PropertyAccess( PropertyAccess { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOptionDefault", span: Span { start: Position { line: 79, column: 49, }, end: Position { line: 79, column: 64, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 79, column: 65, }, end: Position { line: 79, column: 67, }, }, }, ), ], }, ), attribute_path: [ Raw( PartRaw { content: "priority", span: Span { start: Position { line: 79, column: 69, }, end: Position { line: 79, column: 77, }, }, }, ), ], default: None, }, ), }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 79, column: 79, }, end: Position { line: 79, column: 82, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 79, column: 83, }, end: Position { line: 79, column: 94, }, }, }, ), ], default: None, }, ), ], }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultPkgs", span: Span { start: Position { line: 82, column: 3, }, end: Position { line: 82, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 83, column: 8, }, end: Position { line: 83, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 83, column: 12, }, end: Position { line: 83, column: 24, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 83, column: 25, }, end: Position { line: 83, column: 34, }, }, }, ), ], default: None, }, ), then: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "isCross", span: Span { start: Position { line: 85, column: 11, }, end: Position { line: 85, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 85, column: 21, }, end: Position { line: 85, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 85, column: 25, }, end: Position { line: 85, column: 38, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 85, column: 42, }, end: Position { line: 85, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 85, column: 46, }, end: Position { line: 85, column: 58, }, }, }, ), ], default: None, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemArgs", span: Span { start: Position { line: 86, column: 11, }, end: Position { line: 86, column: 21, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: Identifier( Identifier { id: "isCross", span: Span { start: Position { line: 87, column: 16, }, end: Position { line: 87, column: 23, }, }, }, ), then: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 89, column: 15, }, end: Position { line: 89, column: 26, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 89, column: 29, }, end: Position { line: 89, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 89, column: 33, }, end: Position { line: 89, column: 46, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 90, column: 15, }, end: Position { line: 90, column: 26, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 90, column: 29, }, end: Position { line: 90, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 90, column: 33, }, end: Position { line: 90, column: 45, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 88, column: 18, }, end: Position { line: 91, column: 14, }, }, }, ), else_: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 93, column: 15, }, end: Position { line: 93, column: 26, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 93, column: 29, }, end: Position { line: 93, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 93, column: 33, }, end: Position { line: 93, column: 45, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 92, column: 18, }, end: Position { line: 94, column: 14, }, }, }, ), span: Span { start: Position { line: 87, column: 13, }, end: Position { line: 94, column: 14, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 96, column: 7, }, end: Position { line: 96, column: 13, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../..", span: Span { start: Position { line: 96, column: 14, }, end: Position { line: 96, column: 22, }, }, }, ), ], span: Span { start: Position { line: 96, column: 14, }, end: Position { line: 96, column: 22, }, }, }, ), BinaryOperation( BinaryOperation { left: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 97, column: 18, }, end: Position { line: 97, column: 21, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 97, column: 23, }, end: Position { line: 97, column: 29, }, }, }, ), Raw( PartRaw { content: "overlays", span: Span { start: Position { line: 97, column: 30, }, end: Position { line: 97, column: 38, }, }, }, ), ], span: Span { start: Position { line: 96, column: 25, }, end: Position { line: 97, column: 39, }, }, }, ), ], span: Span { start: Position { line: 96, column: 24, }, end: Position { line: 98, column: 8, }, }, }, ), operator: Update, right: Identifier( Identifier { id: "systemArgs", span: Span { start: Position { line: 98, column: 12, }, end: Position { line: 98, column: 22, }, }, }, ), }, ), ], }, ), span: Span { start: Position { line: 85, column: 7, }, end: Position { line: 98, column: 23, }, }, }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "import", span: Span { start: Position { line: 100, column: 7, }, end: Position { line: 100, column: 13, }, }, }, ), arguments: [ Path( Path { parts: [ Raw( PartRaw { content: "../../..", span: Span { start: Position { line: 100, column: 14, }, end: Position { line: 100, column: 22, }, }, }, ), ], span: Span { start: Position { line: 100, column: 14, }, end: Position { line: 100, column: 22, }, }, }, ), Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 101, column: 18, }, end: Position { line: 101, column: 21, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 101, column: 23, }, end: Position { line: 101, column: 29, }, }, }, ), Raw( PartRaw { content: "overlays", span: Span { start: Position { line: 101, column: 30, }, end: Position { line: 101, column: 38, }, }, }, ), Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 101, column: 39, }, end: Position { line: 101, column: 50, }, }, }, ), Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 101, column: 51, }, end: Position { line: 101, column: 62, }, }, }, ), ], span: Span { start: Position { line: 100, column: 24, }, end: Position { line: 101, column: 63, }, }, }, ), ], span: Span { start: Position { line: 100, column: 23, }, end: Position { line: 102, column: 8, }, }, }, ), ], }, ), span: Span { start: Position { line: 83, column: 5, }, end: Position { line: 102, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "finalPkgs", span: Span { start: Position { line: 104, column: 3, }, end: Position { line: 104, column: 12, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 104, column: 18, }, end: Position { line: 104, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 104, column: 22, }, end: Position { line: 104, column: 26, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 104, column: 27, }, end: Position { line: 104, column: 36, }, }, }, ), ], default: None, }, ), then: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 104, column: 42, }, end: Position { line: 104, column: 45, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 104, column: 46, }, end: Position { line: 104, column: 50, }, }, }, ), Raw( PartRaw { content: "appendOverlays", span: Span { start: Position { line: 104, column: 51, }, end: Position { line: 104, column: 65, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 104, column: 66, }, end: Position { line: 104, column: 69, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "overlays", span: Span { start: Position { line: 104, column: 70, }, end: Position { line: 104, column: 78, }, }, }, ), ], default: None, }, ), ], }, ), else_: Identifier( Identifier { id: "defaultPkgs", span: Span { start: Position { line: 104, column: 84, }, end: Position { line: 104, column: 95, }, }, }, ), span: Span { start: Position { line: 104, column: 15, }, end: Position { line: 104, column: 95, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 109, column: 3, }, end: Position { line: 109, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "./assertions.nix", span: Span { start: Position { line: 110, column: 5, }, end: Position { line: 110, column: 21, }, }, }, ), ], span: Span { start: Position { line: 110, column: 5, }, end: Position { line: 110, column: 21, }, }, }, ), Path( Path { parts: [ Raw( PartRaw { content: "./meta.nix", span: Span { start: Position { line: 111, column: 5, }, end: Position { line: 111, column: 15, }, }, }, ), ], span: Span { start: Position { line: 111, column: 5, }, end: Position { line: 111, column: 15, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkRemovedOptionModule", span: Span { start: Position { line: 112, column: 6, }, end: Position { line: 112, column: 27, }, }, }, ), arguments: [ List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 112, column: 31, }, end: Position { line: 112, column: 38, }, }, }, ), ], span: Span { start: Position { line: 112, column: 30, }, end: Position { line: 112, column: 39, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "initialSystem", span: Span { start: Position { line: 112, column: 41, }, end: Position { line: 112, column: 54, }, }, }, ), ], span: Span { start: Position { line: 112, column: 40, }, end: Position { line: 112, column: 55, }, }, }, ), ], span: Span { start: Position { line: 112, column: 28, }, end: Position { line: 112, column: 57, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "The NixOS options `nesting.clone` and `nesting.children` have been deleted, and replaced with named specialisation. Therefore `nixpgks.initialSystem` has no effect anymore.", span: Span { start: Position { line: 112, column: 59, }, end: Position { line: 112, column: 231, }, }, }, ), ], span: Span { start: Position { line: 112, column: 58, }, end: Position { line: 112, column: 232, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 109, column: 13, }, end: Position { line: 113, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 115, column: 3, }, end: Position { line: 115, column: 10, }, }, }, ), Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 115, column: 11, }, end: Position { line: 115, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 117, column: 5, }, end: Position { line: 117, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 117, column: 12, }, end: Position { line: 117, column: 20, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 118, column: 7, }, end: Position { line: 118, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 118, column: 21, }, end: Position { line: 118, column: 38, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "import \"", span: Span { start: Position { line: 119, column: 1, }, end: Position { line: 119, column: 17, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 119, column: 1, }, end: Position { line: 119, column: 20, }, }, }, ), Raw( PartRaw { content: "{nixos}/..\" {\n inherit (cfg) config overlays localSystem crossSystem;\n}\n", span: Span { start: Position { line: 119, column: 1, }, end: Position { line: 122, column: 7, }, }, }, ), ], span: Span { start: Position { line: 118, column: 39, }, end: Position { line: 122, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 123, column: 7, }, end: Position { line: 123, column: 11, }, }, }, ), ], to: Identifier( Identifier { id: "pkgsType", span: Span { start: Position { line: 123, column: 14, }, end: Position { line: 123, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 124, column: 7, }, end: Position { line: 124, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 124, column: 17, }, end: Position { line: 124, column: 34, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "import {}", span: Span { start: Position { line: 124, column: 36, }, end: Position { line: 124, column: 55, }, }, }, ), ], span: Span { start: Position { line: 124, column: 35, }, end: Position { line: 124, column: 56, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 125, column: 7, }, end: Position { line: 125, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 125, column: 21, }, end: Position { line: 125, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 125, column: 25, }, end: Position { line: 125, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If set, the pkgs argument to all NixOS modules is the value of\nthis option, extended with `nixpkgs.overlays`, if\nthat is also set. Either `nixpkgs.crossSystem` or\n`nixpkgs.localSystem` will be used in an assertion\nto check that the NixOS and Nixpkgs architectures match. Any\nother options in `nixpkgs.*`, notably `config`,\nwill be ignored.\n\nIf unset, the pkgs argument to all NixOS modules is determined\nas shown in the default value for this option.\n\nThe default value imports the Nixpkgs source files\nrelative to the location of this NixOS module, because\nNixOS and Nixpkgs are distributed together for consistency,\nso the `nixos` in the default value is in fact a\nrelative path. The `config`, `overlays`,\n`localSystem`, and `crossSystem` come\nfrom this option's siblings.\n\nThis option can be used by applications like NixOps to increase\nthe performance of evaluation, or to create packages that depend\non a container that should be built with the exact same evaluation\nof Nixpkgs, for example. Applications like this should set\ntheir default value using `lib.mkDefault`, so\nuser-provided configuration can override it without using\n`lib`.\n\nNote that using a distinct version of Nixpkgs with NixOS may\nbe an unexpected source of problems. Use this option with care.\n", span: Span { start: Position { line: 126, column: 1, }, end: Position { line: 155, column: 7, }, }, }, ), ], span: Span { start: Position { line: 125, column: 31, }, end: Position { line: 155, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 117, column: 21, }, end: Position { line: 156, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 158, column: 5, }, end: Position { line: 158, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 158, column: 14, }, end: Position { line: 158, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 159, column: 7, }, end: Position { line: 159, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 159, column: 17, }, end: Position { line: 159, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 160, column: 7, }, end: Position { line: 160, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 160, column: 17, }, end: Position { line: 160, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{ allowBroken = true; allowUnfree = true; }\n", span: Span { start: Position { line: 162, column: 1, }, end: Position { line: 163, column: 9, }, }, }, ), ], span: Span { start: Position { line: 161, column: 9, }, end: Position { line: 163, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 164, column: 7, }, end: Position { line: 164, column: 11, }, }, }, ), ], to: Identifier( Identifier { id: "configType", span: Span { start: Position { line: 164, column: 14, }, end: Position { line: 164, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 165, column: 7, }, end: Position { line: 165, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 165, column: 21, }, end: Position { line: 165, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 165, column: 25, }, end: Position { line: 165, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "The configuration of the Nix Packages collection. (For\ndetails, see the Nixpkgs documentation.) It allows you to set\npackage configuration options.\n\nIgnored when `nixpkgs.pkgs` is set.\n", span: Span { start: Position { line: 166, column: 1, }, end: Position { line: 171, column: 7, }, }, }, ), ], span: Span { start: Position { line: 165, column: 31, }, end: Position { line: 171, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 158, column: 23, }, end: Position { line: 172, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "overlays", span: Span { start: Position { line: 174, column: 5, }, end: Position { line: 174, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 174, column: 16, }, end: Position { line: 174, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 175, column: 7, }, end: Position { line: 175, column: 14, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 175, column: 17, }, end: Position { line: 175, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 176, column: 7, }, end: Position { line: 176, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 176, column: 17, }, end: Position { line: 176, column: 34, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[\n (self: super: {\n openssh = super.openssh.override {\n hpnSupport = true;\n kerberos = self.libkrb5;\n };\n })\n]\n", span: Span { start: Position { line: 178, column: 1, }, end: Position { line: 186, column: 9, }, }, }, ), ], span: Span { start: Position { line: 177, column: 9, }, end: Position { line: 186, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 187, column: 7, }, end: Position { line: 187, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 187, column: 14, }, end: Position { line: 187, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "listOf", span: Span { start: Position { line: 187, column: 20, }, end: Position { line: 187, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "overlayType", span: Span { start: Position { line: 187, column: 27, }, end: Position { line: 187, column: 38, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 188, column: 7, }, end: Position { line: 188, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 188, column: 21, }, end: Position { line: 188, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 188, column: 25, }, end: Position { line: 188, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "List of overlays to use with the Nix Packages collection.\n(For details, see the Nixpkgs documentation.) It allows\nyou to override packages globally. Each function in the list\ntakes as an argument the *original* Nixpkgs.\nThe first argument should be used for finding dependencies, and\nthe second should be used for overriding recipes.\n\nIf `nixpkgs.pkgs` is set, overlays specified here\nwill be applied after the overlays that were already present\nin `nixpkgs.pkgs`.\n", span: Span { start: Position { line: 189, column: 1, }, end: Position { line: 199, column: 7, }, }, }, ), ], span: Span { start: Position { line: 188, column: 31, }, end: Position { line: 199, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 174, column: 25, }, end: Position { line: 200, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 202, column: 5, }, end: Position { line: 202, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 202, column: 20, }, end: Position { line: 202, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 203, column: 7, }, end: Position { line: 203, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 203, column: 14, }, end: Position { line: 203, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "either", span: Span { start: Position { line: 203, column: 20, }, end: Position { line: 203, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 203, column: 27, }, end: Position { line: 203, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 203, column: 33, }, end: Position { line: 203, column: 36, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 203, column: 37, }, end: Position { line: 203, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 203, column: 43, }, end: Position { line: 203, column: 48, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 204, column: 7, }, end: Position { line: 204, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 204, column: 19, }, end: Position { line: 204, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-linux", span: Span { start: Position { line: 204, column: 29, }, end: Position { line: 204, column: 42, }, }, }, ), ], span: Span { start: Position { line: 204, column: 28, }, end: Position { line: 204, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 204, column: 45, }, end: Position { line: 204, column: 51, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-unknown-linux-gnu", span: Span { start: Position { line: 204, column: 55, }, end: Position { line: 204, column: 80, }, }, }, ), ], span: Span { start: Position { line: 204, column: 54, }, end: Position { line: 204, column: 81, }, }, }, ), }, ), ], span: Span { start: Position { line: 204, column: 17, }, end: Position { line: 204, column: 84, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply", span: Span { start: Position { line: 207, column: 7, }, end: Position { line: 207, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 207, column: 15, }, end: Position { line: 207, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 207, column: 19, }, end: Position { line: 207, column: 26, }, }, }, ), Raw( PartRaw { content: "elaborate", span: Span { start: Position { line: 207, column: 27, }, end: Position { line: 207, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 208, column: 7, }, end: Position { line: 208, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 208, column: 21, }, end: Position { line: 208, column: 38, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "(import \"", span: Span { start: Position { line: 209, column: 11, }, end: Position { line: 209, column: 20, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 209, column: 11, }, end: Position { line: 209, column: 23, }, }, }, ), Raw( PartRaw { content: "{nixos}/../lib\").lib.systems.examples.aarch64-multiplatform", span: Span { start: Position { line: 209, column: 11, }, end: Position { line: 209, column: 82, }, }, }, ), ], span: Span { start: Position { line: 209, column: 9, }, end: Position { line: 209, column: 84, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 210, column: 7, }, end: Position { line: 210, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 210, column: 21, }, end: Position { line: 210, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 210, column: 25, }, end: Position { line: 210, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specifies the platform where the NixOS configuration will run.\n\nTo cross-compile, set also `nixpkgs.buildPlatform`.\n\nIgnored when `nixpkgs.pkgs` is set.\n", span: Span { start: Position { line: 211, column: 1, }, end: Position { line: 216, column: 7, }, }, }, ), ], span: Span { start: Position { line: 210, column: 31, }, end: Position { line: 216, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 202, column: 29, }, end: Position { line: 217, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildPlatform", span: Span { start: Position { line: 219, column: 5, }, end: Position { line: 219, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 219, column: 21, }, end: Position { line: 219, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 220, column: 7, }, end: Position { line: 220, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 220, column: 14, }, end: Position { line: 220, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "either", span: Span { start: Position { line: 220, column: 20, }, end: Position { line: 220, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 220, column: 27, }, end: Position { line: 220, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 220, column: 33, }, end: Position { line: 220, column: 36, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 220, column: 37, }, end: Position { line: 220, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 220, column: 43, }, end: Position { line: 220, column: 48, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 221, column: 7, }, end: Position { line: 221, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 221, column: 17, }, end: Position { line: 221, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 221, column: 21, }, end: Position { line: 221, column: 33, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 222, column: 7, }, end: Position { line: 222, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 222, column: 19, }, end: Position { line: 222, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "x86_64-linux", span: Span { start: Position { line: 222, column: 29, }, end: Position { line: 222, column: 41, }, }, }, ), ], span: Span { start: Position { line: 222, column: 28, }, end: Position { line: 222, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 222, column: 44, }, end: Position { line: 222, column: 50, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "x86_64-unknown-linux-gnu", span: Span { start: Position { line: 222, column: 54, }, end: Position { line: 222, column: 78, }, }, }, ), ], span: Span { start: Position { line: 222, column: 53, }, end: Position { line: 222, column: 79, }, }, }, ), }, ), ], span: Span { start: Position { line: 222, column: 17, }, end: Position { line: 222, column: 82, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply", span: Span { start: Position { line: 225, column: 7, }, end: Position { line: 225, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 225, column: 15, }, end: Position { line: 225, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 225, column: 19, }, end: Position { line: 225, column: 26, }, }, }, ), Raw( PartRaw { content: "elaborate", span: Span { start: Position { line: 225, column: 27, }, end: Position { line: 225, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 226, column: 7, }, end: Position { line: 226, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 226, column: 21, }, end: Position { line: 226, column: 38, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "config.nixpkgs.hostPlatform", span: Span { start: Position { line: 227, column: 11, }, end: Position { line: 227, column: 38, }, }, }, ), ], span: Span { start: Position { line: 227, column: 9, }, end: Position { line: 227, column: 40, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 228, column: 7, }, end: Position { line: 228, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 228, column: 21, }, end: Position { line: 228, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 228, column: 25, }, end: Position { line: 228, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specifies the platform on which NixOS should be built.\nBy default, NixOS is built on the system where it runs, but you can\nchange where it's built. Setting this option will cause NixOS to be\ncross-compiled.\n\nFor instance, if you're doing distributed multi-platform deployment,\nor if you're building machines, you can set this to match your\ndevelopment system and/or build farm.\n\nIgnored when `nixpkgs.pkgs` is set.\n", span: Span { start: Position { line: 229, column: 1, }, end: Position { line: 239, column: 7, }, }, }, ), ], span: Span { start: Position { line: 228, column: 31, }, end: Position { line: 239, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 219, column: 30, }, end: Position { line: 240, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 242, column: 5, }, end: Position { line: 242, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 242, column: 19, }, end: Position { line: 242, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 243, column: 7, }, end: Position { line: 243, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 243, column: 14, }, end: Position { line: 243, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 243, column: 20, }, end: Position { line: 243, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 244, column: 7, }, end: Position { line: 244, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 244, column: 28, }, end: Position { line: 244, column: 31, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 244, column: 33, }, end: Position { line: 244, column: 39, }, }, }, ), ], span: Span { start: Position { line: 244, column: 18, }, end: Position { line: 244, column: 40, }, }, }, ), ], span: Span { start: Position { line: 244, column: 17, }, end: Position { line: 244, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 245, column: 7, }, end: Position { line: 245, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 245, column: 19, }, end: Position { line: 245, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-linux", span: Span { start: Position { line: 245, column: 29, }, end: Position { line: 245, column: 42, }, }, }, ), ], span: Span { start: Position { line: 245, column: 28, }, end: Position { line: 245, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 245, column: 45, }, end: Position { line: 245, column: 51, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-unknown-linux-gnu", span: Span { start: Position { line: 245, column: 55, }, end: Position { line: 245, column: 80, }, }, }, ), ], span: Span { start: Position { line: 245, column: 54, }, end: Position { line: 245, column: 81, }, }, }, ), }, ), ], span: Span { start: Position { line: 245, column: 17, }, end: Position { line: 245, column: 84, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "apply", span: Span { start: Position { line: 248, column: 7, }, end: Position { line: 248, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 248, column: 15, }, end: Position { line: 248, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 248, column: 19, }, end: Position { line: 248, column: 26, }, }, }, ), Raw( PartRaw { content: "elaborate", span: Span { start: Position { line: 248, column: 27, }, end: Position { line: 248, column: 36, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 249, column: 7, }, end: Position { line: 249, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 249, column: 21, }, end: Position { line: 249, column: 38, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "(import \"", span: Span { start: Position { line: 250, column: 11, }, end: Position { line: 250, column: 20, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 250, column: 11, }, end: Position { line: 250, column: 23, }, }, }, ), Raw( PartRaw { content: "{nixos}/../lib\").lib.systems.examples.aarch64-multiplatform", span: Span { start: Position { line: 250, column: 11, }, end: Position { line: 250, column: 82, }, }, }, ), ], span: Span { start: Position { line: 250, column: 9, }, end: Position { line: 250, column: 84, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 251, column: 7, }, end: Position { line: 251, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 251, column: 21, }, end: Position { line: 251, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 251, column: 25, }, end: Position { line: 251, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Systems with a recently generated `hardware-configuration.nix`\ndo not need to specify this option, unless cross-compiling, in which case\nyou should set *only* {option}`nixpkgs.buildPlatform`.\n\nIf this is somehow not feasible, you may fall back to removing the\n{option}`nixpkgs.hostPlatform` line from the generated config and\nuse the old options.\n\nSpecifies the platform on which NixOS should be built. When\n`nixpkgs.crossSystem` is unset, it also specifies\nthe platform *for* which NixOS should be\nbuilt. If this option is unset, it defaults to the platform\ntype of the machine where evaluation happens. Specifying this\noption is useful when doing distributed multi-platform\ndeployment, or when building virtual machines. See its\ndescription in the Nixpkgs manual for more details.\n\nIgnored when `nixpkgs.pkgs` or `hostPlatform` is set.\n", span: Span { start: Position { line: 252, column: 1, }, end: Position { line: 270, column: 7, }, }, }, ), ], span: Span { start: Position { line: 251, column: 31, }, end: Position { line: 270, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 242, column: 28, }, end: Position { line: 271, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 276, column: 5, }, end: Position { line: 276, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 276, column: 19, }, end: Position { line: 276, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 277, column: 7, }, end: Position { line: 277, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 277, column: 14, }, end: Position { line: 277, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nullOr", span: Span { start: Position { line: 277, column: 20, }, end: Position { line: 277, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 277, column: 27, }, end: Position { line: 277, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrs", span: Span { start: Position { line: 277, column: 33, }, end: Position { line: 277, column: 38, }, }, }, ), ], default: None, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 278, column: 7, }, end: Position { line: 278, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "null", span: Span { start: Position { line: 278, column: 17, }, end: Position { line: 278, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 279, column: 7, }, end: Position { line: 279, column: 14, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 279, column: 19, }, end: Position { line: 279, column: 25, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-linux", span: Span { start: Position { line: 279, column: 29, }, end: Position { line: 279, column: 42, }, }, }, ), ], span: Span { start: Position { line: 279, column: 28, }, end: Position { line: 279, column: 43, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 279, column: 45, }, end: Position { line: 279, column: 51, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "aarch64-unknown-linux-gnu", span: Span { start: Position { line: 279, column: 55, }, end: Position { line: 279, column: 80, }, }, }, ), ], span: Span { start: Position { line: 279, column: 54, }, end: Position { line: 279, column: 81, }, }, }, ), }, ), ], span: Span { start: Position { line: 279, column: 17, }, end: Position { line: 279, column: 84, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 280, column: 7, }, end: Position { line: 280, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 280, column: 21, }, end: Position { line: 280, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 280, column: 25, }, end: Position { line: 280, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Systems with a recently generated `hardware-configuration.nix`\nmay instead specify *only* {option}`nixpkgs.buildPlatform`,\nor fall back to removing the {option}`nixpkgs.hostPlatform` line from the generated config.\n\nSpecifies the platform for which NixOS should be\nbuilt. Specify this only if it is different from\n`nixpkgs.localSystem`, the platform\n*on* which NixOS should be built. In other\nwords, specify this to cross-compile NixOS. Otherwise it\nshould be set as null, the default. See its description in the\nNixpkgs manual for more details.\n\nIgnored when `nixpkgs.pkgs` or `hostPlatform` is set.\n", span: Span { start: Position { line: 281, column: 1, }, end: Position { line: 294, column: 7, }, }, }, ), ], span: Span { start: Position { line: 280, column: 31, }, end: Position { line: 294, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 276, column: 28, }, end: Position { line: 295, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 297, column: 5, }, end: Position { line: 297, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 297, column: 14, }, end: Position { line: 297, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 298, column: 7, }, end: Position { line: 298, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 298, column: 14, }, end: Position { line: 298, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 298, column: 20, }, end: Position { line: 298, column: 23, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 299, column: 7, }, end: Position { line: 299, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "i686-linux", span: Span { start: Position { line: 299, column: 18, }, end: Position { line: 299, column: 28, }, }, }, ), ], span: Span { start: Position { line: 299, column: 17, }, end: Position { line: 299, column: 29, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 300, column: 7, }, end: Position { line: 300, column: 14, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 301, column: 12, }, end: Position { line: 301, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 301, column: 16, }, end: Position { line: 301, column: 28, }, }, }, ), Raw( PartRaw { content: "isDefined", span: Span { start: Position { line: 301, column: 29, }, end: Position { line: 301, column: 38, }, }, }, ), ], default: None, }, ), then: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 303, column: 11, }, end: Position { line: 303, column: 16, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Neither ", span: Span { start: Position { line: 304, column: 1, }, end: Position { line: 304, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 304, column: 23, }, end: Position { line: 304, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 304, column: 27, }, end: Position { line: 304, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " nor any other option in nixpkgs.* is meant\nto be read by modules and configurations.\nUse pkgs.stdenv.hostPlatform instead.\n", span: Span { start: Position { line: 304, column: 1, }, end: Position { line: 307, column: 11, }, }, }, ), ], span: Span { start: Position { line: 303, column: 17, }, end: Position { line: 307, column: 13, }, }, }, ), ], }, ), else_: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "throw", span: Span { start: Position { line: 309, column: 11, }, end: Position { line: 309, column: 16, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Neither ", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 310, column: 21, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 310, column: 23, }, end: Position { line: 310, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 310, column: 27, }, end: Position { line: 310, column: 39, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " nor or the legacy option ", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 310, column: 66, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 310, column: 68, }, end: Position { line: 310, column: 71, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 310, column: 72, }, end: Position { line: 310, column: 78, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " has been set.\nYou can set ", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 311, column: 25, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 311, column: 27, }, end: Position { line: 311, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 311, column: 31, }, end: Position { line: 311, column: 43, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " in hardware-configuration.nix by re-running\na recent version of nixos-generate-config.\nThe option ", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 313, column: 24, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 313, column: 26, }, end: Position { line: 313, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 313, column: 30, }, end: Position { line: 313, column: 36, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " is still fully supported for NixOS 22.05 interoperability,\nbut will be deprecated in the future, so we recommend to set ", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 314, column: 74, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "opt", span: Span { start: Position { line: 314, column: 76, }, end: Position { line: 314, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hostPlatform", span: Span { start: Position { line: 314, column: 80, }, end: Position { line: 314, column: 92, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: ".\n", span: Span { start: Position { line: 310, column: 1, }, end: Position { line: 315, column: 11, }, }, }, ), ], span: Span { start: Position { line: 309, column: 17, }, end: Position { line: 315, column: 13, }, }, }, ), ], }, ), span: Span { start: Position { line: 301, column: 9, }, end: Position { line: 315, column: 13, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 316, column: 7, }, end: Position { line: 316, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 316, column: 21, }, end: Position { line: 316, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "literalMD", span: Span { start: Position { line: 316, column: 25, }, end: Position { line: 316, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Traditionally `builtins.currentSystem`, but unset when invoking NixOS through `lib.nixosSystem`.\n", span: Span { start: Position { line: 317, column: 1, }, end: Position { line: 318, column: 7, }, }, }, ), ], span: Span { start: Position { line: 316, column: 35, }, end: Position { line: 318, column: 9, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 319, column: 7, }, end: Position { line: 319, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 319, column: 21, }, end: Position { line: 319, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 319, column: 25, }, end: Position { line: 319, column: 30, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "This option does not need to be specified for NixOS configurations\nwith a recently generated `hardware-configuration.nix`.\n\nSpecifies the Nix platform type on which NixOS should be built.\nIt is better to specify `nixpkgs.localSystem` instead.\n```\n{\n nixpkgs.system = ..;\n}\n```\nis the same as\n```\n{\n nixpkgs.localSystem.system = ..;\n}\n```\nSee `nixpkgs.localSystem` for more information.\n\nIgnored when `nixpkgs.pkgs`, `nixpkgs.localSystem` or `nixpkgs.hostPlatform` is set.\n", span: Span { start: Position { line: 320, column: 1, }, end: Position { line: 339, column: 7, }, }, }, ), ], span: Span { start: Position { line: 319, column: 31, }, end: Position { line: 339, column: 9, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 297, column: 23, }, end: Position { line: 340, column: 6, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 115, column: 21, }, end: Position { line: 341, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 343, column: 3, }, end: Position { line: 343, column: 9, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "_module", span: Span { start: Position { line: 344, column: 5, }, end: Position { line: 344, column: 12, }, }, }, ), Raw( PartRaw { content: "args", span: Span { start: Position { line: 344, column: 13, }, end: Position { line: 344, column: 17, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgs", span: Span { start: Position { line: 345, column: 7, }, end: Position { line: 345, column: 11, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "finalPkgs", span: Span { start: Position { line: 345, column: 14, }, end: Position { line: 345, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "__splicedPackages", span: Span { start: Position { line: 345, column: 24, }, end: Position { line: 345, column: 41, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 344, column: 20, }, end: Position { line: 346, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 348, column: 5, }, end: Position { line: 348, column: 15, }, }, }, ), ], to: List( List { elements: [ LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixosExpectedSystem", span: Span { start: Position { line: 351, column: 11, }, end: Position { line: 351, column: 30, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 352, column: 16, }, end: Position { line: 352, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 352, column: 23, }, end: Position { line: 352, column: 30, }, }, }, ), Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 352, column: 31, }, end: Position { line: 352, column: 42, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 352, column: 46, }, end: Position { line: 352, column: 50, }, }, }, ), }, ), then: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 353, column: 18, }, end: Position { line: 353, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 353, column: 25, }, end: Position { line: 353, column: 32, }, }, }, ), Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 353, column: 33, }, end: Position { line: 353, column: 44, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 353, column: 45, }, end: Position { line: 353, column: 51, }, }, }, ), ], default: Some( FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 353, column: 56, }, end: Position { line: 353, column: 59, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 353, column: 60, }, end: Position { line: 353, column: 67, }, }, }, ), Raw( PartRaw { content: "parse", span: Span { start: Position { line: 353, column: 68, }, end: Position { line: 353, column: 73, }, }, }, ), Raw( PartRaw { content: "doubleFromSystem", span: Span { start: Position { line: 353, column: 74, }, end: Position { line: 353, column: 90, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 353, column: 92, }, end: Position { line: 353, column: 95, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 353, column: 96, }, end: Position { line: 353, column: 103, }, }, }, ), Raw( PartRaw { content: "parse", span: Span { start: Position { line: 353, column: 104, }, end: Position { line: 353, column: 109, }, }, }, ), Raw( PartRaw { content: "mkSystemFromString", span: Span { start: Position { line: 353, column: 110, }, end: Position { line: 353, column: 128, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 353, column: 129, }, end: Position { line: 353, column: 135, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 353, column: 136, }, end: Position { line: 353, column: 143, }, }, }, ), Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 353, column: 144, }, end: Position { line: 353, column: 155, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 353, column: 156, }, end: Position { line: 353, column: 162, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), ), }, ), else_: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 354, column: 18, }, end: Position { line: 354, column: 24, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 354, column: 25, }, end: Position { line: 354, column: 32, }, }, }, ), Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 354, column: 33, }, end: Position { line: 354, column: 44, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 354, column: 45, }, end: Position { line: 354, column: 51, }, }, }, ), ], default: Some( FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 354, column: 56, }, end: Position { line: 354, column: 59, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 354, column: 60, }, end: Position { line: 354, column: 67, }, }, }, ), Raw( PartRaw { content: "parse", span: Span { start: Position { line: 354, column: 68, }, end: Position { line: 354, column: 73, }, }, }, ), Raw( PartRaw { content: "doubleFromSystem", span: Span { start: Position { line: 354, column: 74, }, end: Position { line: 354, column: 90, }, }, }, ), ], default: None, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 354, column: 92, }, end: Position { line: 354, column: 95, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "systems", span: Span { start: Position { line: 354, column: 96, }, end: Position { line: 354, column: 103, }, }, }, ), Raw( PartRaw { content: "parse", span: Span { start: Position { line: 354, column: 104, }, end: Position { line: 354, column: 109, }, }, }, ), Raw( PartRaw { content: "mkSystemFromString", span: Span { start: Position { line: 354, column: 110, }, end: Position { line: 354, column: 128, }, }, }, ), ], default: None, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 354, column: 129, }, end: Position { line: 354, column: 135, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 354, column: 136, }, end: Position { line: 354, column: 143, }, }, }, ), Raw( PartRaw { content: "localSystem", span: Span { start: Position { line: 354, column: 144, }, end: Position { line: 354, column: 155, }, }, }, ), Raw( PartRaw { content: "config", span: Span { start: Position { line: 354, column: 156, }, end: Position { line: 354, column: 162, }, }, }, ), ], default: None, }, ), ], }, ), ], }, ), ), }, ), span: Span { start: Position { line: 352, column: 13, }, end: Position { line: 354, column: 164, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nixosOption", span: Span { start: Position { line: 355, column: 11, }, end: Position { line: 355, column: 22, }, }, }, ), ], to: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 356, column: 16, }, end: Position { line: 356, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nixpkgs", span: Span { start: Position { line: 356, column: 23, }, end: Position { line: 356, column: 30, }, }, }, ), Raw( PartRaw { content: "crossSystem", span: Span { start: Position { line: 356, column: 31, }, end: Position { line: 356, column: 42, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 356, column: 46, }, end: Position { line: 356, column: 50, }, }, }, ), }, ), then: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs.crossSystem", span: Span { start: Position { line: 357, column: 19, }, end: Position { line: 357, column: 38, }, }, }, ), ], span: Span { start: Position { line: 357, column: 18, }, end: Position { line: 357, column: 39, }, }, }, ), else_: String( String_ { parts: [ Raw( PartRaw { content: "nixpkgs.localSystem", span: Span { start: Position { line: 358, column: 19, }, end: Position { line: 358, column: 38, }, }, }, ), ], span: Span { start: Position { line: 358, column: 18, }, end: Position { line: 358, column: 39, }, }, }, ), span: Span { start: Position { line: 356, column: 13, }, end: Position { line: 358, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pkgsSystem", span: Span { start: Position { line: 359, column: 11, }, end: Position { line: 359, column: 21, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "finalPkgs", span: Span { start: Position { line: 359, column: 24, }, end: Position { line: 359, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 359, column: 34, }, end: Position { line: 359, column: 40, }, }, }, ), Raw( PartRaw { content: "targetPlatform", span: Span { start: Position { line: 359, column: 41, }, end: Position { line: 359, column: 55, }, }, }, ), Raw( PartRaw { content: "system", span: Span { start: Position { line: 359, column: 56, }, end: Position { line: 359, column: 62, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 361, column: 11, }, end: Position { line: 361, column: 20, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "constructedByMe", span: Span { start: Position { line: 361, column: 23, }, end: Position { line: 361, column: 38, }, }, }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: UnaryOperation( UnaryOperation { operator: Not, operand: Identifier( Identifier { id: "hasPlatform", span: Span { start: Position { line: 361, column: 43, }, end: Position { line: 361, column: 54, }, }, }, ), span: Span { start: Position { line: 361, column: 42, }, end: Position { line: 361, column: 54, }, }, }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "nixosExpectedSystem", span: Span { start: Position { line: 361, column: 58, }, end: Position { line: 361, column: 77, }, }, }, ), operator: EqualTo, right: Identifier( Identifier { id: "pkgsSystem", span: Span { start: Position { line: 361, column: 81, }, end: Position { line: 361, column: 91, }, }, }, ), }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 362, column: 11, }, end: Position { line: 362, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "The NixOS nixpkgs.pkgs option was set to a Nixpkgs invocation that compiles to target system ", span: Span { start: Position { line: 362, column: 22, }, end: Position { line: 362, column: 128, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "pkgsSystem", span: Span { start: Position { line: 362, column: 117, }, end: Position { line: 362, column: 127, }, }, }, ), }, ), Raw( PartRaw { content: " but NixOS was configured for system ", span: Span { start: Position { line: 362, column: 22, }, end: Position { line: 362, column: 165, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "nixosExpectedSystem", span: Span { start: Position { line: 362, column: 167, }, end: Position { line: 362, column: 186, }, }, }, ), }, ), Raw( PartRaw { content: " via NixOS option ", span: Span { start: Position { line: 362, column: 22, }, end: Position { line: 362, column: 205, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "nixosOption", span: Span { start: Position { line: 362, column: 207, }, end: Position { line: 362, column: 218, }, }, }, ), }, ), Raw( PartRaw { content: ". The NixOS system settings must match the Nixpkgs target system.", span: Span { start: Position { line: 362, column: 22, }, end: Position { line: 362, column: 284, }, }, }, ), ], span: Span { start: Position { line: 362, column: 21, }, end: Position { line: 362, column: 285, }, }, }, ), }, ), ], span: Span { start: Position { line: 360, column: 12, }, end: Position { line: 363, column: 10, }, }, }, ), span: Span { start: Position { line: 350, column: 9, }, end: Position { line: 363, column: 10, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 366, column: 9, }, end: Position { line: 366, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "constructedByMe", span: Span { start: Position { line: 366, column: 21, }, end: Position { line: 366, column: 36, }, }, }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "hasPlatform", span: Span { start: Position { line: 366, column: 40, }, end: Position { line: 366, column: 51, }, }, }, ), operator: Implication, right: BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "legacyOptionsDefined", span: Span { start: Position { line: 366, column: 55, }, end: Position { line: 366, column: 75, }, }, }, ), operator: EqualTo, right: List( List { elements: [], span: Span { start: Position { line: 366, column: 79, }, end: Position { line: 366, column: 81, }, }, }, ), }, ), }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 367, column: 9, }, end: Position { line: 367, column: 16, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Your system configures nixpkgs with the platform parameter", span: Span { start: Position { line: 368, column: 1, }, end: Position { line: 368, column: 69, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 368, column: 71, }, end: Position { line: 368, column: 85, }, }, }, ), arguments: [ Identifier( Identifier { id: "hasBuildPlatform", span: Span { start: Position { line: 368, column: 86, }, end: Position { line: 368, column: 102, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "s", span: Span { start: Position { line: 368, column: 104, }, end: Position { line: 368, column: 105, }, }, }, ), ], span: Span { start: Position { line: 368, column: 103, }, end: Position { line: 368, column: 106, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: ":\n", span: Span { start: Position { line: 368, column: 1, }, end: Position { line: 369, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "hostPlatformLine", span: Span { start: Position { line: 369, column: 13, }, end: Position { line: 369, column: 29, }, }, }, ), }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "buildPlatformLine", span: Span { start: Position { line: 370, column: 14, }, end: Position { line: 370, column: 31, }, }, }, ), }, ), Raw( PartRaw { content: "\nHowever, it also defines the legacy options:\n", span: Span { start: Position { line: 368, column: 1, }, end: Position { line: 373, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStrings", span: Span { start: Position { line: 373, column: 13, }, end: Position { line: 373, column: 29, }, }, }, ), arguments: [ Identifier( Identifier { id: "showOptionWithDefLocs", span: Span { start: Position { line: 373, column: 30, }, end: Position { line: 373, column: 51, }, }, }, ), Identifier( Identifier { id: "legacyOptionsDefined", span: Span { start: Position { line: 373, column: 52, }, end: Position { line: 373, column: 72, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nFor a future proof system configuration, we recommend to remove\nthe legacy definitions.\n", span: Span { start: Position { line: 368, column: 1, }, end: Position { line: 376, column: 9, }, }, }, ), ], span: Span { start: Position { line: 367, column: 19, }, end: Position { line: 376, column: 11, }, }, }, ), }, ), ], span: Span { start: Position { line: 365, column: 7, }, end: Position { line: 377, column: 8, }, }, }, ), ], span: Span { start: Position { line: 348, column: 18, }, end: Position { line: 378, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 343, column: 12, }, end: Position { line: 379, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 382, column: 3, }, end: Position { line: 382, column: 7, }, }, }, ), Raw( PartRaw { content: "buildDocsInSandbox", span: Span { start: Position { line: 382, column: 8, }, end: Position { line: 382, column: 26, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 382, column: 29, }, end: Position { line: 382, column: 34, }, }, }, ), }, ), ], span: Span { start: Position { line: 108, column: 1, }, end: Position { line: 383, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 383, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 383, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 383, column: 2, }, }, }, )