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: "enable", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 9, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 6, column: 12, }, end: Position { line: 6, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 6, column: 19, }, end: Position { line: 6, column: 27, }, }, }, ), Raw( PartRaw { content: "bash", span: Span { start: Position { line: 6, column: 28, }, end: Position { line: 6, column: 32, }, }, }, ), Raw( PartRaw { content: "enableCompletion", span: Span { start: Position { line: 6, column: 33, }, end: Position { line: 6, column: 49, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 13, }, }, }, ), Raw( PartRaw { content: "bash", span: Span { start: Position { line: 10, column: 14, }, end: Position { line: 10, column: 18, }, }, }, ), Raw( PartRaw { content: "enableCompletion", span: Span { start: Position { line: 10, column: 19, }, end: Position { line: 10, column: 35, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 10, column: 38, }, end: Position { line: 10, column: 52, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 10, column: 54, }, end: Position { line: 10, column: 57, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 10, column: 58, }, end: Position { line: 10, column: 63, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "Bash completion for all interactive bash shells", span: Span { start: Position { line: 10, column: 65, }, end: Position { line: 10, column: 112, }, }, }, ), ], span: Span { start: Position { line: 10, column: 64, }, end: Position { line: 10, column: 113, }, }, }, ), ], }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 11, column: 7, }, end: Position { line: 11, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 11, column: 17, }, end: Position { line: 11, column: 21, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 118, }, end: Position { line: 12, column: 6, }, }, }, ), }, ), }, ), ], span: Span { start: Position { line: 9, column: 13, }, end: Position { line: 13, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 15, column: 12, }, end: Position { line: 15, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "enable", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 23, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 13, }, }, }, ), Raw( PartRaw { content: "bash", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 18, }, }, }, ), Raw( PartRaw { content: "promptPluginInit", span: Span { start: Position { line: 16, column: 19, }, end: Position { line: 16, column: 35, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# Check whether we're running a version of Bash that has support for\n# programmable completion. If we do, enable all modules installed in\n# the system and user profile in obsolete /etc/bash_completion.d/\n# directories. Bash loads completions in all\n# $XDG_DATA_DIRS/bash-completion/completions/\n# on demand, so they do not need to be sourced here.\nif shopt -q progcomp &>/dev/null; then\n . \"", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 24, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 24, column: 14, }, end: Position { line: 24, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bash-completion", span: Span { start: Position { line: 24, column: 19, }, end: Position { line: 24, column: 34, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/etc/profile.d/bash_completion.sh\"\n nullglobStatus=$(shopt -p nullglob)\n shopt -s nullglob\n for p in $NIX_PROFILES; do\n for m in \"$p/etc/bash_completion.d/\"*; do\n . \"$m\"\n done\n done\n eval \"$nullglobStatus\"\n unset nullglobStatus p m\nfi\n", span: Span { start: Position { line: 17, column: 1, }, end: Position { line: 35, column: 5, }, }, }, ), ], span: Span { start: Position { line: 16, column: 38, }, end: Position { line: 35, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 15, column: 24, }, end: Position { line: 36, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 37, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 37, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 37, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 37, column: 2, }, }, }, )