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: 6, column: 6, }, end: Position { line: 6, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 9, column: 3, }, end: Position { line: 9, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 9, column: 9, }, end: Position { line: 9, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "programs", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 24, }, }, }, ), Raw( PartRaw { content: "java", span: Span { start: Position { line: 9, column: 25, }, end: Position { line: 9, column: 29, }, }, }, ), ], default: None, }, ), }, ), ], 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, }, }, }, ), ], to: 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: "java", span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 18, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 18, column: 7, }, end: Position { line: 18, column: 13, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 18, column: 16, }, end: Position { line: 18, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 18, column: 32, }, end: Position { line: 18, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 18, column: 36, }, end: Position { line: 18, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "java", span: Span { start: Position { line: 18, column: 43, }, end: Position { line: 18, column: 47, }, }, }, ), ], span: Span { start: Position { line: 18, column: 42, }, end: Position { line: 18, column: 48, }, }, }, ), ], }, ), ], }, ), operator: Update, right: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 23, }, end: Position { line: 19, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 27, }, end: Position { line: 19, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Install and setup the Java development kit.\n\n::: {.note}\nThis adds JAVA_HOME to the global environment, by sourcing the\njdk's setup-hook on shell init. It is equivalent to starting a shell\nthrough 'nix-shell -p jdk', or roughly the following system-wide\nconfiguration:\n\n environment.variables.JAVA_HOME = ", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 28, column: 49, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 28, column: 52, }, }, }, ), Raw( PartRaw { content: "{pkgs.jdk.home}/lib/openjdk;\n environment.systemPackages = [ pkgs.jdk ];\n:::\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 31, column: 9, }, }, }, ), ], span: Span { start: Position { line: 19, column: 33, }, end: Position { line: 31, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 18, column: 53, }, end: Position { line: 32, column: 8, }, }, }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 34, column: 7, }, end: Position { line: 34, column: 14, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 34, column: 17, }, end: Position { line: 34, column: 25, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 35, column: 9, }, end: Position { line: 35, column: 16, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "jdk", span: Span { start: Position { line: 35, column: 24, }, end: Position { line: 35, column: 27, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "defaultText", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 36, column: 23, }, end: Position { line: 36, column: 40, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.jdk", span: Span { start: Position { line: 36, column: 42, }, end: Position { line: 36, column: 50, }, }, }, ), ], span: Span { start: Position { line: 36, column: 41, }, end: Position { line: 36, column: 51, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 37, column: 23, }, end: Position { line: 37, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 37, column: 27, }, end: Position { line: 37, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Java package to install. Typical values are pkgs.jdk or pkgs.jre.\n", span: Span { start: Position { line: 38, column: 1, }, end: Position { line: 39, column: 9, }, }, }, ), ], span: Span { start: Position { line: 37, column: 33, }, end: Position { line: 39, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 40, column: 9, }, end: Position { line: 40, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 40, column: 16, }, end: Position { line: 40, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 40, column: 22, }, end: Position { line: 40, column: 29, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 34, column: 26, }, end: Position { line: 41, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 21, }, end: Position { line: 43, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 45, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 47, column: 3, }, end: Position { line: 47, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 47, column: 12, }, end: Position { line: 47, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 47, column: 17, }, end: Position { line: 47, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 47, column: 21, }, end: Position { line: 47, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 49, column: 5, }, end: Position { line: 49, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 49, column: 17, }, end: Position { line: 49, column: 31, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 49, column: 36, }, end: Position { line: 49, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 49, column: 40, }, end: Position { line: 49, column: 47, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 49, column: 34, }, end: Position { line: 49, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 51, column: 5, }, end: Position { line: 51, column: 16, }, }, }, ), Raw( PartRaw { content: "shellInit", span: Span { start: Position { line: 51, column: 17, }, end: Position { line: 51, column: 26, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "test -e ", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 52, column: 15, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 17, }, end: Position { line: 52, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 28, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/nix-support/setup-hook && source ", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 52, column: 63, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 52, column: 65, }, end: Position { line: 52, column: 68, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 52, column: 69, }, end: Position { line: 52, column: 76, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/nix-support/setup-hook\n", span: Span { start: Position { line: 52, column: 1, }, end: Position { line: 53, column: 5, }, }, }, ), ], span: Span { start: Position { line: 51, column: 29, }, end: Position { line: 53, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 55, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 8, column: 1, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 6, column: 1, }, end: Position { line: 57, column: 2, }, }, }, ), span: Span { start: Position { line: 4, column: 1, }, end: Position { line: 57, column: 2, }, }, }, )