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: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "imports", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 10, }, }, }, ), ], to: List( List { elements: [ Path( Path { parts: [ Raw( PartRaw { content: "../../profiles/base.nix", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 28, }, }, }, ), ], span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 28, }, }, }, ), Path( Path { parts: [ Raw( PartRaw { content: "./sd-image.nix", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 19, }, }, }, ), ], span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 19, }, }, }, ), ], span: Span { start: Position { line: 6, column: 13, }, end: Position { line: 9, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 11, column: 3, }, end: Position { line: 11, column: 7, }, }, }, ), Raw( PartRaw { content: "loader", span: Span { start: Position { line: 11, column: 8, }, end: Position { line: 11, column: 14, }, }, }, ), Raw( PartRaw { content: "grub", span: Span { start: Position { line: 11, column: 15, }, end: Position { line: 11, column: 19, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 11, column: 20, }, end: Position { line: 11, column: 26, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 11, column: 29, }, end: Position { line: 11, column: 34, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 12, column: 3, }, end: Position { line: 12, column: 7, }, }, }, ), Raw( PartRaw { content: "loader", span: Span { start: Position { line: 12, column: 8, }, end: Position { line: 12, column: 14, }, }, }, ), Raw( PartRaw { content: "generic-extlinux-compatible", span: Span { start: Position { line: 12, column: 15, }, end: Position { line: 12, column: 42, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 12, column: 43, }, end: Position { line: 12, column: 49, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 12, column: 52, }, end: Position { line: 12, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 14, column: 3, }, end: Position { line: 14, column: 7, }, }, }, ), Raw( PartRaw { content: "consoleLogLevel", span: Span { start: Position { line: 14, column: 8, }, end: Position { line: 14, column: 23, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 14, column: 26, }, end: Position { line: 14, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mkDefault", span: Span { start: Position { line: 14, column: 30, }, end: Position { line: 14, column: 39, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "7", span: Span { start: Position { line: 14, column: 40, }, end: Position { line: 14, column: 41, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 15, column: 3, }, end: Position { line: 15, column: 7, }, }, }, ), Raw( PartRaw { content: "kernelPackages", span: Span { start: Position { line: 15, column: 8, }, end: Position { line: 15, column: 22, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 15, column: 25, }, end: Position { line: 15, column: 29, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "linuxKernel", span: Span { start: Position { line: 15, column: 30, }, end: Position { line: 15, column: 41, }, }, }, ), Raw( PartRaw { content: "packages", span: Span { start: Position { line: 15, column: 42, }, end: Position { line: 15, column: 50, }, }, }, ), Raw( PartRaw { content: "linux_rpi1", span: Span { start: Position { line: 15, column: 51, }, end: Position { line: 15, column: 61, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 17, column: 3, }, end: Position { line: 17, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateFirmwareCommands", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 29, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configTxt", span: Span { start: Position { line: 19, column: 7, }, end: Position { line: 19, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 19, column: 19, }, end: Position { line: 19, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "writeText", span: Span { start: Position { line: 19, column: 24, }, end: Position { line: 19, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "config.txt", span: Span { start: Position { line: 19, column: 35, }, end: Position { line: 19, column: 45, }, }, }, ), ], span: Span { start: Position { line: 19, column: 34, }, end: Position { line: 19, column: 46, }, }, }, ), IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel\n# when attempting to show low-voltage or overtemperature warnings.\navoid_warnings=1\n\n[pi0]\nkernel=u-boot-rpi0.bin\n\n[pi1]\nkernel=u-boot-rpi1.bin\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 29, column: 7, }, }, }, ), ], span: Span { start: Position { line: 19, column: 47, }, end: Position { line: 29, column: 9, }, }, }, ), ], }, ), }, ), ], target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "(cd ", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 31, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 31, column: 15, }, end: Position { line: 31, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "raspberrypifw", span: Span { start: Position { line: 31, column: 20, }, end: Position { line: 31, column: 33, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/firmware/)\ncp ", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 32, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 32, column: 14, }, end: Position { line: 32, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ubootRaspberryPiZero", span: Span { start: Position { line: 32, column: 19, }, end: Position { line: 32, column: 39, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/u-boot.bin firmware/u-boot-rpi0.bin\ncp ", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 33, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 33, column: 14, }, end: Position { line: 33, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ubootRaspberryPi", span: Span { start: Position { line: 33, column: 19, }, end: Position { line: 33, column: 35, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/u-boot.bin firmware/u-boot-rpi1.bin\ncp ", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 34, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configTxt", span: Span { start: Position { line: 34, column: 14, }, end: Position { line: 34, column: 23, }, }, }, ), }, ), Raw( PartRaw { content: " firmware/config.txt\n", span: Span { start: Position { line: 31, column: 1, }, end: Position { line: 35, column: 7, }, }, }, ), ], span: Span { start: Position { line: 30, column: 10, }, end: Position { line: 35, column: 9, }, }, }, ), span: Span { start: Position { line: 18, column: 32, }, end: Position { line: 35, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateRootCommands", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 25, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p ./files/boot\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 38, column: 16, }, end: Position { line: 38, column: 20, }, }, }, ), Raw( PartRaw { content: "loader", span: Span { start: Position { line: 38, column: 21, }, end: Position { line: 38, column: 27, }, }, }, ), Raw( PartRaw { content: "generic-extlinux-compatible", span: Span { start: Position { line: 38, column: 28, }, end: Position { line: 38, column: 55, }, }, }, ), Raw( PartRaw { content: "populateCmd", span: Span { start: Position { line: 38, column: 56, }, end: Position { line: 38, column: 67, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " -c ", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 38, column: 72, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 38, column: 74, }, end: Position { line: 38, column: 80, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 38, column: 81, }, end: Position { line: 38, column: 87, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 38, column: 88, }, end: Position { line: 38, column: 93, }, }, }, ), Raw( PartRaw { content: "toplevel", span: Span { start: Position { line: 38, column: 94, }, end: Position { line: 38, column: 102, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " -d ./files/boot\n", span: Span { start: Position { line: 37, column: 1, }, end: Position { line: 39, column: 5, }, }, }, ), ], span: Span { start: Position { line: 36, column: 28, }, end: Position { line: 39, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 17, column: 13, }, end: Position { line: 40, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 41, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 41, column: 2, }, }, }, )