Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "config", 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: "dysnomia", span: Span { start: Position { line: 6, column: 16, }, end: Position { line: 6, column: 24, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "printProperties", span: Span { start: Position { line: 8, column: 3, }, end: Position { line: 8, column: 18, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "properties", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStrings", span: Span { start: Position { line: 9, column: 5, }, end: Position { line: 9, column: 21, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "propertyName", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "property", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 17, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "properties", span: Span { start: Position { line: 11, column: 20, }, end: Position { line: 11, column: 30, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "propertyName", span: Span { start: Position { line: 11, column: 33, }, end: Position { line: 11, column: 45, }, }, }, ), }, ), ], default: None, }, ), }, ), ], target: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "isList", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 16, }, }, }, ), arguments: [ Identifier( Identifier { id: "property", span: Span { start: Position { line: 13, column: 17, }, end: Position { line: 13, column: 25, }, }, }, ), ], }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "propertyName", span: Span { start: Position { line: 13, column: 34, }, end: Position { line: 13, column: 46, }, }, }, ), }, ), Raw( PartRaw { content: "=(", span: Span { start: Position { line: 13, column: 32, }, end: Position { line: 13, column: 49, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 13, column: 51, }, end: Position { line: 13, column: 54, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatMapStrings", span: Span { start: Position { line: 13, column: 55, }, end: Position { line: 13, column: 71, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "elem", }, ), body: String( String_ { parts: [ Raw( PartRaw { content: "\"", span: Span { start: Position { line: 13, column: 80, }, end: Position { line: 13, column: 98, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 13, column: 84, }, end: Position { line: 13, column: 92, }, }, }, ), arguments: [ Identifier( Identifier { id: "elem", span: Span { start: Position { line: 13, column: 93, }, end: Position { line: 13, column: 97, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\" ", span: Span { start: Position { line: 13, column: 80, }, end: Position { line: 13, column: 101, }, }, }, ), ], span: Span { start: Position { line: 13, column: 79, }, end: Position { line: 13, column: 102, }, }, }, ), span: Span { start: Position { line: 13, column: 73, }, end: Position { line: 13, column: 102, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "properties", span: Span { start: Position { line: 13, column: 105, }, end: Position { line: 13, column: 115, }, }, }, ), attribute_path: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "propertyName", span: Span { start: Position { line: 13, column: 118, }, end: Position { line: 13, column: 130, }, }, }, ), }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: ")\n", span: Span { start: Position { line: 13, column: 32, }, end: Position { line: 13, column: 136, }, }, }, ), ], span: Span { start: Position { line: 13, column: 31, }, end: Position { line: 13, column: 137, }, }, }, ), else_: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "propertyName", span: Span { start: Position { line: 14, column: 15, }, end: Position { line: 14, column: 27, }, }, }, ), }, ), Raw( PartRaw { content: "=\"", span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 31, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 14, column: 33, }, end: Position { line: 14, column: 41, }, }, }, ), arguments: [ Identifier( Identifier { id: "property", span: Span { start: Position { line: 14, column: 42, }, end: Position { line: 14, column: 50, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\"\n", span: Span { start: Position { line: 14, column: 13, }, end: Position { line: 14, column: 55, }, }, }, ), ], span: Span { start: Position { line: 14, column: 12, }, end: Position { line: 14, column: 56, }, }, }, ), span: Span { start: Position { line: 13, column: 7, }, end: Position { line: 14, column: 56, }, }, }, ), span: Span { start: Position { line: 10, column: 7, }, end: Position { line: 14, column: 56, }, }, }, ), span: Span { start: Position { line: 9, column: 23, }, end: Position { line: 14, column: 56, }, }, }, ), FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "builtins", span: Span { start: Position { line: 15, column: 8, }, end: Position { line: 15, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "attrNames", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 26, }, }, }, ), ], default: None, }, ), arguments: [ Identifier( Identifier { id: "properties", span: Span { start: Position { line: 15, column: 27, }, end: Position { line: 15, column: 37, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 8, column: 21, }, end: Position { line: 15, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "properties", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 17, column: 21, }, end: Position { line: 17, column: 27, }, }, }, ), Raw( PartRaw { content: "mkDerivation", span: Span { start: Position { line: 17, column: 28, }, end: Position { line: 17, column: 40, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "dysnomia-properties", span: Span { start: Position { line: 18, column: 13, }, end: Position { line: 18, column: 32, }, }, }, ), ], span: Span { start: Position { line: 18, column: 12, }, end: Position { line: 18, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildCommand", span: Span { start: Position { line: 19, column: 5, }, end: Position { line: 19, column: 17, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "cat > $out << \"EOF\"\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 21, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "printProperties", span: Span { start: Position { line: 21, column: 9, }, end: Position { line: 21, column: 24, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 21, column: 25, }, end: Position { line: 21, column: 28, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "properties", span: Span { start: Position { line: 21, column: 29, }, end: Position { line: 21, column: 39, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\nEOF\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 23, column: 5, }, }, }, ), ], span: Span { start: Position { line: 19, column: 20, }, end: Position { line: 23, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 41, }, end: Position { line: 24, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "containersDir", span: Span { start: Position { line: 26, column: 3, }, end: Position { line: 26, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 26, column: 19, }, end: Position { line: 26, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 26, column: 24, }, end: Position { line: 26, column: 30, }, }, }, ), Raw( PartRaw { content: "mkDerivation", span: Span { start: Position { line: 26, column: 31, }, end: Position { line: 26, column: 43, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 27, column: 5, }, end: Position { line: 27, column: 9, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "dysnomia-containers", span: Span { start: Position { line: 27, column: 13, }, end: Position { line: 27, column: 32, }, }, }, ), ], span: Span { start: Position { line: 27, column: 12, }, end: Position { line: 27, column: 33, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildCommand", span: Span { start: Position { line: 28, column: 5, }, end: Position { line: 28, column: 17, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out\ncd $out\n\n", span: Span { start: Position { line: 29, column: 1, }, end: Position { line: 32, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatMapStrings", span: Span { start: Position { line: 32, column: 9, }, end: Position { line: 32, column: 25, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "containerName", }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "containerProperties", span: Span { start: Position { line: 34, column: 11, }, end: Position { line: 34, column: 30, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 34, column: 33, }, end: Position { line: 34, column: 36, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "containers", span: Span { start: Position { line: 34, column: 37, }, end: Position { line: 34, column: 47, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "containerName", span: Span { start: Position { line: 34, column: 50, }, end: Position { line: 34, column: 63, }, }, }, ), }, ), ], default: None, }, ), }, ), ], target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "cat > ", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 37, column: 17, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "containerName", span: Span { start: Position { line: 37, column: 19, }, end: Position { line: 37, column: 32, }, }, }, ), }, ), Raw( PartRaw { content: " < /etc/systemd-mutable/system/dysnomia.target\nfi\n", span: Span { start: Position { line: 255, column: 1, }, end: Position { line: 263, column: 5, }, }, }, ), ], span: Span { start: Position { line: 254, column: 41, }, end: Position { line: 263, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 148, column: 28, }, end: Position { line: 264, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 83, column: 1, }, end: Position { line: 265, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 265, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 265, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 265, column: 2, }, }, }, )