Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", 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: "im", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 5, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 8, }, end: Position { line: 6, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "i18n", span: Span { start: Position { line: 6, column: 15, }, end: Position { line: 6, column: 19, }, }, }, ), Raw( PartRaw { content: "inputMethod", span: Span { start: Position { line: 6, column: 20, }, end: Position { line: 6, column: 31, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 7, column: 3, }, end: Position { line: 7, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "im", span: Span { start: Position { line: 7, column: 9, }, end: Position { line: 7, column: 11, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fcitx5", span: Span { start: Position { line: 7, column: 12, }, end: Position { line: 7, column: 18, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "addons", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 9, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 8, column: 12, }, end: Position { line: 8, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "addons", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 22, }, }, }, ), ], default: None, }, ), operator: Concatenation, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optional", span: Span { start: Position { line: 8, column: 26, }, end: Position { line: 8, column: 34, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 8, column: 35, }, end: Position { line: 8, column: 38, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enableRimeData", span: Span { start: Position { line: 8, column: 39, }, end: Position { line: 8, column: 53, }, }, }, ), ], default: None, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 8, column: 54, }, end: Position { line: 8, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "rime-data", span: Span { start: Position { line: 8, column: 59, }, end: Position { line: 8, column: 68, }, }, }, ), ], default: None, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "fcitx5Package", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 9, column: 19, }, end: Position { line: 9, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fcitx5-with-addons", span: Span { start: Position { line: 9, column: 24, }, end: Position { line: 9, column: 42, }, }, }, ), Raw( PartRaw { content: "override", span: Span { start: Position { line: 9, column: 43, }, end: Position { line: 9, column: 51, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ Inherit( BindingInherit { from: None, attributes: [ Raw( PartRaw { content: "addons", span: Span { start: Position { line: 9, column: 62, }, end: Position { line: 9, column: 68, }, }, }, ), ], span: Span { start: Position { line: 9, column: 53, }, end: Position { line: 9, column: 69, }, }, }, ), ], span: Span { start: Position { line: 9, column: 52, }, end: Position { line: 9, column: 71, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "whetherRimeDataDir", span: Span { start: Position { line: 10, column: 3, }, end: Position { line: 10, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "any", span: Span { start: Position { line: 10, column: 24, }, end: Position { line: 10, column: 27, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "p", }, ), body: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "p", span: Span { start: Position { line: 10, column: 32, }, end: Position { line: 10, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "pname", span: Span { start: Position { line: 10, column: 34, }, end: Position { line: 10, column: 39, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "fcitx5-rime", span: Span { start: Position { line: 10, column: 44, }, end: Position { line: 10, column: 55, }, }, }, ), ], span: Span { start: Position { line: 10, column: 43, }, end: Position { line: 10, column: 56, }, }, }, ), }, ), span: Span { start: Position { line: 10, column: 29, }, end: Position { line: 10, column: 56, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 10, column: 58, }, end: Position { line: 10, column: 61, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "addons", span: Span { start: Position { line: 10, column: 62, }, end: Position { line: 10, column: 68, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "i18n", span: Span { start: Position { line: 13, column: 5, }, end: Position { line: 13, column: 9, }, }, }, ), Raw( PartRaw { content: "inputMethod", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 21, }, }, }, ), Raw( PartRaw { content: "fcitx5", span: Span { start: Position { line: 13, column: 22, }, end: Position { line: 13, column: 28, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "addons", span: Span { start: Position { line: 14, column: 7, }, end: Position { line: 14, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 14, column: 16, }, end: Position { line: 14, column: 24, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 15, column: 9, }, end: Position { line: 15, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 15, column: 21, }, end: Position { line: 15, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 15, column: 28, }, end: Position { line: 15, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "package", span: Span { start: Position { line: 15, column: 35, }, end: Position { line: 15, column: 42, }, }, }, ), ], }, ), span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 42, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 16, column: 9, }, end: Position { line: 16, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 16, column: 19, }, end: Position { line: 16, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 17, column: 19, }, end: Position { line: 17, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "with pkgs; [ fcitx5-rime ]", span: Span { start: Position { line: 17, column: 38, }, end: Position { line: 17, column: 64, }, }, }, ), ], span: Span { start: Position { line: 17, column: 37, }, end: Position { line: 17, column: 65, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 18, column: 23, }, end: Position { line: 18, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 18, column: 27, }, end: Position { line: 18, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enabled Fcitx5 addons.\n", span: Span { start: Position { line: 19, column: 1, }, end: Position { line: 20, column: 9, }, }, }, ), ], span: Span { start: Position { line: 18, column: 33, }, end: Position { line: 20, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 14, column: 25, }, end: Position { line: 21, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enableRimeData", span: Span { start: Position { line: 23, column: 7, }, end: Position { line: 23, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 23, column: 24, }, end: Position { line: 23, column: 38, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 23, column: 40, }, end: Position { line: 23, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 23, column: 44, }, end: Position { line: 23, column: 49, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "default rime-data with fcitx5-rime", span: Span { start: Position { line: 23, column: 51, }, end: Position { line: 23, column: 85, }, }, }, ), ], span: Span { start: Position { line: 23, column: 50, }, end: Position { line: 23, column: 86, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 13, column: 31, }, end: Position { line: 24, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 12, column: 13, }, end: Position { line: 25, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 27, column: 3, }, end: Position { line: 27, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 27, column: 12, }, end: Position { line: 27, column: 16, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "im", span: Span { start: Position { line: 27, column: 18, }, end: Position { line: 27, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enabled", span: Span { start: Position { line: 27, column: 21, }, end: Position { line: 27, column: 28, }, }, }, ), ], default: None, }, ), operator: EqualTo, right: String( String_ { parts: [ Raw( PartRaw { content: "fcitx5", span: Span { start: Position { line: 27, column: 33, }, end: Position { line: 27, column: 39, }, }, }, ), ], span: Span { start: Position { line: 27, column: 32, }, end: Position { line: 27, column: 40, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "i18n", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 9, }, }, }, ), Raw( PartRaw { content: "inputMethod", span: Span { start: Position { line: 28, column: 10, }, end: Position { line: 28, column: 21, }, }, }, ), Raw( PartRaw { content: "package", span: Span { start: Position { line: 28, column: 22, }, end: Position { line: 28, column: 29, }, }, }, ), ], to: Identifier( Identifier { id: "fcitx5Package", span: Span { start: Position { line: 28, column: 32, }, end: Position { line: 28, column: 45, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 30, column: 5, }, end: Position { line: 30, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkMerge", span: Span { start: Position { line: 30, column: 19, }, end: Position { line: 30, column: 26, }, }, }, ), arguments: [ List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variables", span: Span { start: Position { line: 31, column: 7, }, end: Position { line: 31, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "GTK_IM_MODULE", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 22, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "fcitx", span: Span { start: Position { line: 32, column: 26, }, end: Position { line: 32, column: 31, }, }, }, ), ], span: Span { start: Position { line: 32, column: 25, }, end: Position { line: 32, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "QT_IM_MODULE", span: Span { start: Position { line: 33, column: 9, }, end: Position { line: 33, column: 21, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "fcitx", span: Span { start: Position { line: 33, column: 25, }, end: Position { line: 33, column: 30, }, }, }, ), ], span: Span { start: Position { line: 33, column: 24, }, end: Position { line: 33, column: 31, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "XMODIFIERS", span: Span { start: Position { line: 34, column: 9, }, end: Position { line: 34, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "@im=fcitx", span: Span { start: Position { line: 34, column: 23, }, end: Position { line: 34, column: 32, }, }, }, ), ], span: Span { start: Position { line: 34, column: 22, }, end: Position { line: 34, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "QT_PLUGIN_PATH", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 23, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "fcitx5Package", span: Span { start: Position { line: 35, column: 31, }, end: Position { line: 35, column: 44, }, }, }, ), }, ), Raw( PartRaw { content: "/", span: Span { start: Position { line: 35, column: 29, }, end: Position { line: 35, column: 46, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 35, column: 48, }, end: Position { line: 35, column: 52, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "qt6", span: Span { start: Position { line: 35, column: 53, }, end: Position { line: 35, column: 56, }, }, }, ), Raw( PartRaw { content: "qtbase", span: Span { start: Position { line: 35, column: 57, }, end: Position { line: 35, column: 63, }, }, }, ), Raw( PartRaw { content: "qtPluginPrefix", span: Span { start: Position { line: 35, column: 64, }, end: Position { line: 35, column: 78, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 35, column: 28, }, end: Position { line: 35, column: 80, }, }, }, ), ], span: Span { start: Position { line: 35, column: 26, }, end: Position { line: 35, column: 82, }, }, }, ), }, ), ], span: Span { start: Position { line: 31, column: 19, }, end: Position { line: 36, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 30, column: 28, }, end: Position { line: 37, column: 6, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 38, column: 6, }, end: Position { line: 38, column: 10, }, }, }, ), arguments: [ Identifier( Identifier { id: "whetherRimeDataDir", span: Span { start: Position { line: 38, column: 11, }, end: Position { line: 38, column: 29, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pathsToLink", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 18, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "/share/rime-data", span: Span { start: Position { line: 40, column: 10, }, end: Position { line: 40, column: 26, }, }, }, ), ], span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 27, }, }, }, ), ], span: Span { start: Position { line: 39, column: 21, }, end: Position { line: 41, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "variables", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "NIX_RIME_DATA_DIR", span: Span { start: Position { line: 44, column: 9, }, end: Position { line: 44, column: 26, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "/run/current-system/sw/share/rime-data", span: Span { start: Position { line: 44, column: 30, }, end: Position { line: 44, column: 68, }, }, }, ), ], span: Span { start: Position { line: 44, column: 29, }, end: Position { line: 44, column: 69, }, }, }, ), }, ), ], span: Span { start: Position { line: 43, column: 20, }, end: Position { line: 45, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 30, }, end: Position { line: 46, column: 6, }, }, }, ), ], }, ), ], span: Span { start: Position { line: 30, column: 27, }, end: Position { line: 46, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 27, column: 42, }, end: Position { line: 47, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 11, column: 4, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 48, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 48, column: 2, }, }, }, )