Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", 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: "kernelVersion", span: Span { start: Position { line: 5, column: 3, }, end: Position { line: 5, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 5, column: 19, }, end: Position { line: 5, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 5, column: 26, }, end: Position { line: 5, column: 30, }, }, }, ), Raw( PartRaw { content: "kernelPackages", span: Span { start: Position { line: 5, column: 31, }, end: Position { line: 5, column: 45, }, }, }, ), Raw( PartRaw { content: "kernel", span: Span { start: Position { line: 5, column: 46, }, end: Position { line: 5, column: 52, }, }, }, ), Raw( PartRaw { content: "version", span: Span { start: Position { line: 5, column: 53, }, end: Position { line: 5, column: 60, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "linuxKernelMinVersion", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 24, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "5.8", span: Span { start: Position { line: 6, column: 28, }, end: Position { line: 6, column: 31, }, }, }, ), ], span: Span { start: Position { line: 6, column: 27, }, end: Position { line: 6, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "kernelPatch", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 14, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 7, column: 17, }, end: Position { line: 7, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "kernelPatches", span: Span { start: Position { line: 7, column: 22, }, end: Position { line: 7, column: 35, }, }, }, ), Raw( PartRaw { content: "ath_regd_optional", span: Span { start: Position { line: 7, column: 36, }, end: Position { line: 7, column: 53, }, }, }, ), ], default: None, }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraConfig", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 16, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ATH_USER_REGD y\n", span: Span { start: Position { line: 9, column: 1, }, end: Position { line: 10, column: 5, }, }, }, ), ], span: Span { start: Position { line: 8, column: 19, }, end: Position { line: 10, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 7, column: 57, }, end: Position { line: 11, column: 4, }, }, }, ), }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 10, }, }, }, ), Raw( PartRaw { content: "networking", span: Span { start: Position { line: 14, column: 11, }, end: Position { line: 14, column: 21, }, }, }, ), Raw( PartRaw { content: "wireless", span: Span { start: Position { line: 14, column: 22, }, end: Position { line: 14, column: 30, }, }, }, ), Raw( PartRaw { content: "athUserRegulatoryDomain", span: Span { start: Position { line: 14, column: 31, }, end: Position { line: 14, column: 54, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 14, column: 57, }, end: Position { line: 14, column: 65, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 15, column: 15, }, end: Position { line: 15, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 16, column: 12, }, end: Position { line: 16, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 16, column: 18, }, end: Position { line: 16, column: 22, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 17, column: 5, }, end: Position { line: 17, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 17, column: 19, }, end: Position { line: 17, column: 22, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 17, column: 23, }, end: Position { line: 17, column: 28, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "If enabled, sets the ATH_USER_REGD kernel config switch to true to\ndisable the enforcement of EEPROM regulatory restrictions for ath\ndrivers. Requires at least Linux ", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 20, column: 40, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "linuxKernelMinVersion", span: Span { start: Position { line: 20, column: 42, }, end: Position { line: 20, column: 63, }, }, }, ), }, ), Raw( PartRaw { content: ".\n", span: Span { start: Position { line: 18, column: 1, }, end: Position { line: 21, column: 5, }, }, }, ), ], span: Span { start: Position { line: 17, column: 29, }, end: Position { line: 21, column: 7, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 14, column: 66, }, end: Position { line: 22, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 24, column: 3, }, end: Position { line: 24, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 24, column: 12, }, end: Position { line: 24, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 24, column: 17, }, end: Position { line: 24, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "networking", span: Span { start: Position { line: 24, column: 24, }, end: Position { line: 24, column: 34, }, }, }, ), Raw( PartRaw { content: "wireless", span: Span { start: Position { line: 24, column: 35, }, end: Position { line: 24, column: 43, }, }, }, ), Raw( PartRaw { content: "athUserRegulatoryDomain", span: Span { start: Position { line: 24, column: 44, }, end: Position { line: 24, column: 67, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "singleton", span: Span { start: Position { line: 25, column: 18, }, end: Position { line: 25, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 26, column: 7, }, end: Position { line: 26, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "lessThan", span: Span { start: Position { line: 26, column: 19, }, end: Position { line: 26, column: 27, }, }, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 26, column: 28, }, end: Position { line: 26, column: 29, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 26, column: 31, }, end: Position { line: 26, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "compareVersions", span: Span { start: Position { line: 26, column: 40, }, end: Position { line: 26, column: 55, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "kernelVersion", span: Span { start: Position { line: 26, column: 56, }, end: Position { line: 26, column: 69, }, }, }, ), Identifier( Identifier { id: "linuxKernelMinVersion", span: Span { start: Position { line: 26, column: 70, }, end: Position { line: 26, column: 91, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 27, column: 7, }, end: Position { line: 27, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "ATH_USER_REGD patch for kernels older than ", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 85, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "linuxKernelMinVersion", span: Span { start: Position { line: 27, column: 63, }, end: Position { line: 27, column: 84, }, }, }, ), }, ), Raw( PartRaw { content: " not ported yet!", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 101, }, }, }, ), ], span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 102, }, }, }, ), }, ), ], span: Span { start: Position { line: 25, column: 28, }, end: Position { line: 28, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 29, column: 5, }, end: Position { line: 29, column: 9, }, }, }, ), Raw( PartRaw { content: "kernelPatches", span: Span { start: Position { line: 29, column: 10, }, end: Position { line: 29, column: 23, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "kernelPatch", span: Span { start: Position { line: 29, column: 28, }, end: Position { line: 29, column: 39, }, }, }, ), ], span: Span { start: Position { line: 29, column: 26, }, end: Position { line: 29, column: 41, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 68, }, end: Position { line: 30, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 1, }, end: Position { line: 31, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 31, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 31, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 31, column: 2, }, }, }, )