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: "scdaemonUdevRev", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "01898735a015541e3ffb43c7245ac1e612f40836", span: Span { start: Position { line: 12, column: 22, }, end: Position { line: 12, column: 62, }, }, }, ), ], span: Span { start: Position { line: 12, column: 21, }, end: Position { line: 12, column: 63, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "scdaemonRules", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 14, column: 19, }, end: Position { line: 14, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fetchurl", span: Span { start: Position { line: 14, column: 24, }, end: Position { line: 14, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "url", span: Span { start: Position { line: 15, column: 5, }, end: Position { line: 15, column: 8, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://salsa.debian.org/debian/gnupg2/-/raw/", span: Span { start: Position { line: 15, column: 12, }, end: Position { line: 15, column: 75, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "scdaemonUdevRev", span: Span { start: Position { line: 15, column: 59, }, end: Position { line: 15, column: 74, }, }, }, ), }, ), Raw( PartRaw { content: "/debian/scdaemon.udev", span: Span { start: Position { line: 15, column: 12, }, end: Position { line: 15, column: 96, }, }, }, ), ], span: Span { start: Position { line: 15, column: 11, }, end: Position { line: 15, column: 97, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sha256", span: Span { start: Position { line: 16, column: 5, }, end: Position { line: 16, column: 11, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "08v0vp6950bz7galvc92zdss89y9vcwbinmbfcdldy8x72w6rqr3", span: Span { start: Position { line: 16, column: 15, }, end: Position { line: 16, column: 67, }, }, }, ), ], span: Span { start: Position { line: 16, column: 14, }, end: Position { line: 16, column: 68, }, }, }, ), }, ), ], span: Span { start: Position { line: 14, column: 33, }, end: Position { line: 17, column: 4, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "destination", span: Span { start: Position { line: 20, column: 3, }, end: Position { line: 20, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "60-scdaemon.rules", span: Span { start: Position { line: 20, column: 18, }, end: Position { line: 20, column: 35, }, }, }, ), ], span: Span { start: Position { line: 20, column: 17, }, end: Position { line: 20, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "scdaemonUdevRulesPkg", span: Span { start: Position { line: 22, column: 3, }, end: Position { line: 22, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 22, column: 26, }, end: Position { line: 22, column: 30, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "runCommand", span: Span { start: Position { line: 22, column: 31, }, end: Position { line: 22, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "scdaemon-udev-rules", span: Span { start: Position { line: 22, column: 43, }, end: Position { line: 22, column: 62, }, }, }, ), ], span: Span { start: Position { line: 22, column: 42, }, end: Position { line: 22, column: 63, }, }, }, ), Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 22, column: 64, }, end: Position { line: 22, column: 66, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "loc=\"$out/lib/udev/rules.d/\"\nmkdir -p \"", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 24, column: 15, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 24, column: 18, }, }, }, ), Raw( PartRaw { content: "{loc}\"\ncp \"", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 25, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "scdaemonRules", span: Span { start: Position { line: 25, column: 11, }, end: Position { line: 25, column: 24, }, }, }, ), }, ), Raw( PartRaw { content: "\" \"", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 25, column: 28, }, }, }, ), Raw( PartRaw { content: "$", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 25, column: 31, }, }, }, ), Raw( PartRaw { content: "{loc}/", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 25, column: 37, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "destination", span: Span { start: Position { line: 25, column: 39, }, end: Position { line: 25, column: 50, }, }, }, ), }, ), Raw( PartRaw { content: "\"\n", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 26, column: 3, }, }, }, ), ], span: Span { start: Position { line: 22, column: 67, }, end: Position { line: 26, column: 5, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "cfg", span: Span { start: Position { line: 28, column: 3, }, end: Position { line: 28, column: 6, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 28, column: 9, }, end: Position { line: 28, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 28, column: 16, }, end: Position { line: 28, column: 24, }, }, }, ), Raw( PartRaw { content: "gpgSmartcards", span: Span { start: Position { line: 28, column: 25, }, end: Position { line: 28, column: 38, }, }, }, ), ], default: None, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 30, column: 3, }, end: Position { line: 30, column: 10, }, }, }, ), Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 30, column: 11, }, end: Position { line: 30, column: 19, }, }, }, ), Raw( PartRaw { content: "gpgSmartcards", span: Span { start: Position { line: 30, column: 20, }, end: Position { line: 30, column: 33, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 31, column: 5, }, end: Position { line: 31, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 31, column: 14, }, end: Position { line: 31, column: 28, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 30, }, end: Position { line: 31, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 31, column: 34, }, end: Position { line: 31, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "udev rules for gnupg smart cards", span: Span { start: Position { line: 31, column: 41, }, end: Position { line: 31, column: 73, }, }, }, ), ], span: Span { start: Position { line: 31, column: 40, }, end: Position { line: 31, column: 74, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 30, column: 36, }, end: Position { line: 32, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 34, column: 3, }, end: Position { line: 34, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 34, column: 12, }, end: Position { line: 34, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "cfg", span: Span { start: Position { line: 34, column: 17, }, end: Position { line: 34, column: 20, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 34, column: 21, }, end: Position { line: 34, column: 27, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 35, column: 5, }, end: Position { line: 35, column: 13, }, }, }, ), Raw( PartRaw { content: "udev", span: Span { start: Position { line: 35, column: 14, }, end: Position { line: 35, column: 18, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 35, column: 19, }, end: Position { line: 35, column: 27, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "scdaemonUdevRulesPkg", span: Span { start: Position { line: 35, column: 32, }, end: Position { line: 35, column: 52, }, }, }, ), ], span: Span { start: Position { line: 35, column: 30, }, end: Position { line: 35, column: 54, }, }, }, ), }, ), ], span: Span { start: Position { line: 34, column: 28, }, end: Position { line: 36, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 29, column: 4, }, end: Position { line: 37, column: 2, }, }, }, ), span: Span { start: Position { line: 4, 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, }, }, }, )