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: "linuxPackages_latest", span: Span { start: Position { line: 15, column: 30, }, end: Position { line: 15, column: 50, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 22, column: 3, }, end: Position { line: 22, column: 7, }, }, }, ), Raw( PartRaw { content: "kernelParams", span: Span { start: Position { line: 22, column: 8, }, end: Position { line: 22, column: 20, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "console=ttyS0,115200n8", span: Span { start: Position { line: 22, column: 25, }, end: Position { line: 22, column: 47, }, }, }, ), ], span: Span { start: Position { line: 22, column: 24, }, end: Position { line: 22, column: 48, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "console=ttymxc0,115200n8", span: Span { start: Position { line: 22, column: 50, }, end: Position { line: 22, column: 74, }, }, }, ), ], span: Span { start: Position { line: 22, column: 49, }, end: Position { line: 22, column: 75, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "console=ttyAMA0,115200n8", span: Span { start: Position { line: 22, column: 77, }, end: Position { line: 22, column: 101, }, }, }, ), ], span: Span { start: Position { line: 22, column: 76, }, end: Position { line: 22, column: 102, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "console=ttyO0,115200n8", span: Span { start: Position { line: 22, column: 104, }, end: Position { line: 22, column: 126, }, }, }, ), ], span: Span { start: Position { line: 22, column: 103, }, end: Position { line: 22, column: 127, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "console=ttySAC2,115200n8", span: Span { start: Position { line: 22, column: 129, }, end: Position { line: 22, column: 153, }, }, }, ), ], span: Span { start: Position { line: 22, column: 128, }, end: Position { line: 22, column: 154, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "console=tty0", span: Span { start: Position { line: 22, column: 156, }, end: Position { line: 22, column: 168, }, }, }, ), ], span: Span { start: Position { line: 22, column: 155, }, end: Position { line: 22, column: 169, }, }, }, ), ], span: Span { start: Position { line: 22, column: 23, }, end: Position { line: 22, column: 170, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sdImage", span: Span { start: Position { line: 24, column: 3, }, end: Position { line: 24, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateFirmwareCommands", span: Span { start: Position { line: 25, column: 5, }, end: Position { line: 25, column: 29, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "configTxt", span: Span { start: Position { line: 26, column: 7, }, 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: "writeText", span: Span { start: Position { line: 26, column: 24, }, end: Position { line: 26, column: 33, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "config.txt", span: Span { start: Position { line: 26, column: 35, }, end: Position { line: 26, column: 45, }, }, }, ), ], span: Span { start: Position { line: 26, column: 34, }, end: Position { line: 26, 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[pi2]\nkernel=u-boot-rpi2.bin\n\n[pi3]\nkernel=u-boot-rpi3.bin\n\n# U-Boot used to need this to work, regardless of whether UART is actually used or not.\n# TODO: check when/if this can be removed.\nenable_uart=1\n", span: Span { start: Position { line: 27, column: 1, }, end: Position { line: 40, column: 7, }, }, }, ), ], span: Span { start: Position { line: 26, column: 47, }, end: Position { line: 40, column: 9, }, }, }, ), ], }, ), }, ), ], target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "(cd ", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 42, column: 13, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 42, column: 15, }, end: Position { line: 42, column: 19, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "raspberrypifw", span: Span { start: Position { line: 42, column: 20, }, end: Position { line: 42, 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: 42, column: 1, }, end: Position { line: 43, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 43, column: 14, }, end: Position { line: 43, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ubootRaspberryPi2", span: Span { start: Position { line: 43, column: 19, }, end: Position { line: 43, column: 36, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/u-boot.bin firmware/u-boot-rpi2.bin\ncp ", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 44, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 44, column: 14, }, end: Position { line: 44, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ubootRaspberryPi3_32bit", span: Span { start: Position { line: 44, column: 19, }, end: Position { line: 44, column: 42, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: "/u-boot.bin firmware/u-boot-rpi3.bin\ncp ", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 45, column: 12, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "configTxt", span: Span { start: Position { line: 45, column: 14, }, end: Position { line: 45, column: 23, }, }, }, ), }, ), Raw( PartRaw { content: " firmware/config.txt\n", span: Span { start: Position { line: 42, column: 1, }, end: Position { line: 46, column: 7, }, }, }, ), ], span: Span { start: Position { line: 41, column: 10, }, end: Position { line: 46, column: 9, }, }, }, ), span: Span { start: Position { line: 25, column: 32, }, end: Position { line: 46, column: 9, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "populateRootCommands", span: Span { start: Position { line: 47, column: 5, }, end: Position { line: 47, column: 25, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p ./files/boot\n", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 49, column: 7, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 49, column: 9, }, end: Position { line: 49, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 49, column: 16, }, end: Position { line: 49, column: 20, }, }, }, ), Raw( PartRaw { content: "loader", span: Span { start: Position { line: 49, column: 21, }, end: Position { line: 49, column: 27, }, }, }, ), Raw( PartRaw { content: "generic-extlinux-compatible", span: Span { start: Position { line: 49, column: 28, }, end: Position { line: 49, column: 55, }, }, }, ), Raw( PartRaw { content: "populateCmd", span: Span { start: Position { line: 49, column: 56, }, end: Position { line: 49, column: 67, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " -c ", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 49, column: 72, }, }, }, ), Interpolation( PartInterpolation { expression: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 49, column: 74, }, end: Position { line: 49, column: 80, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "system", span: Span { start: Position { line: 49, column: 81, }, end: Position { line: 49, column: 87, }, }, }, ), Raw( PartRaw { content: "build", span: Span { start: Position { line: 49, column: 88, }, end: Position { line: 49, column: 93, }, }, }, ), Raw( PartRaw { content: "toplevel", span: Span { start: Position { line: 49, column: 94, }, end: Position { line: 49, column: 102, }, }, }, ), ], default: None, }, ), }, ), Raw( PartRaw { content: " -d ./files/boot\n", span: Span { start: Position { line: 48, column: 1, }, end: Position { line: 50, column: 5, }, }, }, ), ], span: Span { start: Position { line: 47, column: 28, }, end: Position { line: 50, column: 7, }, }, }, ), }, ), ], span: Span { start: Position { line: 24, column: 13, }, end: Position { line: 51, column: 4, }, }, }, ), }, ), ], span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 52, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 52, column: 2, }, }, }, )