Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: false, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "stdenv", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "brscan4", default: None, }, FunctionHeadDestructuredArgument { identifier: "netDevices", default: Some( List( List { elements: [], span: Span { start: Position { line: 1, column: 38, }, end: Position { line: 1, column: 40, }, }, }, ), ), }, ], }, ), body: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "addNetDev", span: Span { start: Position { line: 24, column: 3, }, end: Position { line: 24, column: 12, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "nd", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "brsaneconfig4 -a \\\nname=\"", span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 26, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nd", span: Span { start: Position { line: 26, column: 13, }, end: Position { line: 26, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "name", span: Span { start: Position { line: 26, column: 16, }, end: Position { line: 26, column: 20, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\" \\\nmodel=\"", span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 27, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nd", span: Span { start: Position { line: 27, column: 14, }, end: Position { line: 27, column: 16, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "model", span: Span { start: Position { line: 27, column: 17, }, end: Position { line: 27, column: 22, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\" \\\n", span: Span { start: Position { line: 25, column: 1, }, end: Position { line: 28, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: IfThenElse( IfThenElse { predicate: BinaryOperation( BinaryOperation { left: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 28, column: 11, }, end: Position { line: 28, column: 14, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hasAttr", span: Span { start: Position { line: 28, column: 15, }, end: Position { line: 28, column: 22, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "nodename", span: Span { start: Position { line: 28, column: 24, }, end: Position { line: 28, column: 32, }, }, }, ), ], span: Span { start: Position { line: 28, column: 23, }, end: Position { line: 28, column: 33, }, }, }, ), Identifier( Identifier { id: "nd", span: Span { start: Position { line: 28, column: 34, }, end: Position { line: 28, column: 36, }, }, }, ), ], }, ), operator: LogicalAnd, right: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nd", span: Span { start: Position { line: 28, column: 40, }, end: Position { line: 28, column: 42, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nodename", span: Span { start: Position { line: 28, column: 43, }, end: Position { line: 28, column: 51, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: Identifier( Identifier { id: "null", span: Span { start: Position { line: 28, column: 55, }, end: Position { line: 28, column: 59, }, }, }, ), }, ), }, ), then: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "nodename=\"", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 19, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nd", span: Span { start: Position { line: 29, column: 21, }, end: Position { line: 29, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "nodename", span: Span { start: Position { line: 29, column: 24, }, end: Position { line: 29, column: 32, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"", span: Span { start: Position { line: 29, column: 9, }, end: Position { line: 29, column: 34, }, }, }, ), ], span: Span { start: Position { line: 29, column: 7, }, end: Position { line: 29, column: 36, }, }, }, ), else_: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "ip=\"", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "nd", span: Span { start: Position { line: 30, column: 15, }, end: Position { line: 30, column: 17, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ip", span: Span { start: Position { line: 30, column: 18, }, end: Position { line: 30, column: 20, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "\"", span: Span { start: Position { line: 30, column: 9, }, end: Position { line: 30, column: 22, }, }, }, ), ], span: Span { start: Position { line: 30, column: 7, }, end: Position { line: 30, column: 24, }, }, }, ), span: Span { start: Position { line: 28, column: 7, }, end: Position { line: 30, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 19, }, end: Position { line: 30, column: 27, }, }, }, ), span: Span { start: Position { line: 24, column: 15, }, end: Position { line: 30, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "addAllNetDev", span: Span { start: Position { line: 31, column: 3, }, end: Position { line: 31, column: 15, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "xs", }, ), body: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 22, }, end: Position { line: 31, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "concatStringsSep", span: Span { start: Position { line: 31, column: 26, }, end: Position { line: 31, column: 42, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "\n", span: Span { start: Position { line: 31, column: 44, }, end: Position { line: 31, column: 46, }, }, }, ), ], span: Span { start: Position { line: 31, column: 43, }, end: Position { line: 31, column: 47, }, }, }, ), FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "map", span: Span { start: Position { line: 31, column: 49, }, end: Position { line: 31, column: 52, }, }, }, ), arguments: [ Identifier( Identifier { id: "addNetDev", span: Span { start: Position { line: 31, column: 53, }, end: Position { line: 31, column: 62, }, }, }, ), Identifier( Identifier { id: "xs", span: Span { start: Position { line: 31, column: 63, }, end: Position { line: 31, column: 65, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 31, column: 18, }, end: Position { line: 31, column: 66, }, }, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "stdenv", span: Span { start: Position { line: 34, column: 1, }, end: Position { line: 34, column: 7, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkDerivation", span: Span { start: Position { line: 34, column: 8, }, end: Position { line: 34, column: 20, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pname", span: Span { start: Position { line: 36, column: 3, }, end: Position { line: 36, column: 8, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "brscan4-etc-files", span: Span { start: Position { line: 36, column: 12, }, end: Position { line: 36, column: 29, }, }, }, ), ], span: Span { start: Position { line: 36, column: 11, }, end: Position { line: 36, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "version", span: Span { start: Position { line: 37, column: 3, }, end: Position { line: 37, column: 10, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "0.4.3-3", span: Span { start: Position { line: 37, column: 14, }, end: Position { line: 37, column: 21, }, }, }, ), ], span: Span { start: Position { line: 37, column: 13, }, end: Position { line: 37, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "src", span: Span { start: Position { line: 38, column: 3, }, end: Position { line: 38, column: 6, }, }, }, ), ], to: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "brscan4", span: Span { start: Position { line: 38, column: 12, }, end: Position { line: 38, column: 19, }, }, }, ), }, ), Raw( PartRaw { content: "/opt/brother/scanner/brscan4", span: Span { start: Position { line: 38, column: 10, }, end: Position { line: 38, column: 48, }, }, }, ), ], span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 49, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nativeBuildInputs", span: Span { start: Position { line: 40, column: 3, }, end: Position { line: 40, column: 20, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "brscan4", span: Span { start: Position { line: 40, column: 25, }, end: Position { line: 40, column: 32, }, }, }, ), ], span: Span { start: Position { line: 40, column: 23, }, end: Position { line: 40, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontConfigure", span: Span { start: Position { line: 42, column: 3, }, end: Position { line: 42, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 42, column: 19, }, end: Position { line: 42, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "buildPhase", span: Span { start: Position { line: 44, column: 3, }, end: Position { line: 44, column: 13, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "TARGET_DIR=\"$out/etc/opt/brother/scanner/brscan4\"\nmkdir -p \"$TARGET_DIR\"\ncp -rp \"./models4\" \"$TARGET_DIR\"\ncp -rp \"./Brsane4.ini\" \"$TARGET_DIR\"\ncp -rp \"./brsanenetdevice4.cfg\" \"$TARGET_DIR\"\n\nexport BRSANENETDEVICE4_CFG_FILENAME=\"$TARGET_DIR/brsanenetdevice4.cfg\"\n\nprintf ", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 53, column: 12, }, }, }, ), Raw( PartRaw { content: "'", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 53, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "addAllNetDev", span: Span { start: Position { line: 53, column: 15, }, end: Position { line: 53, column: 27, }, }, }, ), arguments: [ Identifier( Identifier { id: "netDevices", span: Span { start: Position { line: 53, column: 28, }, end: Position { line: 53, column: 38, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\\n'\n\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 55, column: 5, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "addAllNetDev", span: Span { start: Position { line: 55, column: 7, }, end: Position { line: 55, column: 19, }, }, }, ), arguments: [ Identifier( Identifier { id: "netDevices", span: Span { start: Position { line: 55, column: 20, }, end: Position { line: 55, column: 30, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 45, column: 1, }, end: Position { line: 56, column: 3, }, }, }, ), ], span: Span { start: Position { line: 44, column: 16, }, end: Position { line: 56, column: 5, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontInstall", span: Span { start: Position { line: 58, column: 3, }, end: Position { line: 58, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 58, column: 17, }, end: Position { line: 58, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontStrip", span: Span { start: Position { line: 59, column: 3, }, end: Position { line: 59, column: 12, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 59, column: 15, }, end: Position { line: 59, column: 19, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontPatchELF", span: Span { start: Position { line: 60, column: 3, }, end: Position { line: 60, column: 15, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 60, column: 18, }, end: Position { line: 60, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 62, column: 3, }, end: Position { line: 62, column: 7, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 62, column: 15, }, end: Position { line: 62, column: 18, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 63, column: 5, }, end: Position { line: 63, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Brother brscan4 sane backend driver etc files", span: Span { start: Position { line: 63, column: 20, }, end: Position { line: 63, column: 65, }, }, }, ), ], span: Span { start: Position { line: 63, column: 19, }, end: Position { line: 63, column: 66, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "homepage", span: Span { start: Position { line: 64, column: 5, }, end: Position { line: 64, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "http://www.brother.com", span: Span { start: Position { line: 64, column: 17, }, end: Position { line: 64, column: 39, }, }, }, ), ], span: Span { start: Position { line: 64, column: 16, }, end: Position { line: 64, column: 40, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "platforms", span: Span { start: Position { line: 65, column: 5, }, end: Position { line: 65, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "platforms", span: Span { start: Position { line: 65, column: 17, }, end: Position { line: 65, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "linux", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 32, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "license", span: Span { start: Position { line: 66, column: 5, }, end: Position { line: 66, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "licenses", span: Span { start: Position { line: 66, column: 15, }, end: Position { line: 66, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "unfree", span: Span { start: Position { line: 66, column: 24, }, end: Position { line: 66, column: 30, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 67, column: 5, }, end: Position { line: 67, column: 16, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 67, column: 24, }, end: Position { line: 67, column: 35, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "jraygauthier", span: Span { start: Position { line: 67, column: 39, }, end: Position { line: 67, column: 51, }, }, }, ), ], span: Span { start: Position { line: 67, column: 37, }, end: Position { line: 67, column: 53, }, }, }, ), span: Span { start: Position { line: 67, column: 19, }, end: Position { line: 67, column: 53, }, }, }, ), }, ), ], span: Span { start: Position { line: 62, column: 20, }, end: Position { line: 68, column: 4, }, }, }, ), span: Span { start: Position { line: 62, column: 10, }, end: Position { line: 68, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 69, column: 2, }, }, }, ), ], }, ), span: Span { start: Position { line: 22, column: 1, }, end: Position { line: 69, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 69, column: 2, }, }, }, )