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: "hpssacli", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 6, column: 14, }, end: Position { line: 6, column: 18, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 6, column: 19, }, end: Position { line: 6, column: 25, }, }, }, ), Raw( PartRaw { content: "mkDerivation", span: Span { start: Position { line: 6, column: 26, }, end: Position { line: 6, column: 38, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: true, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "pname", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 10, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "hpssacli", span: Span { start: Position { line: 7, column: 14, }, end: Position { line: 7, column: 22, }, }, }, ), ], span: Span { start: Position { line: 7, column: 13, }, end: Position { line: 7, column: 23, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "version", span: Span { start: Position { line: 8, column: 5, }, end: Position { line: 8, column: 12, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "2.40-13.0", span: Span { start: Position { line: 8, column: 16, }, end: Position { line: 8, column: 25, }, }, }, ), ], span: Span { start: Position { line: 8, column: 15, }, end: Position { line: 8, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "src", span: Span { start: Position { line: 10, column: 5, }, end: Position { line: 10, column: 8, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 10, column: 11, }, end: Position { line: 10, column: 15, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "fetchurl", span: Span { start: Position { line: 10, column: 16, }, end: Position { line: 10, column: 24, }, }, }, ), ], default: None, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "urls", span: Span { start: Position { line: 11, column: 7, }, end: Position { line: 11, column: 11, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "https://downloads.linux.hpe.com/SDR/downloads/MCP/Ubuntu/pool/non-free/", span: Span { start: Position { line: 12, column: 10, }, end: Position { line: 12, column: 89, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "pname", span: Span { start: Position { line: 12, column: 83, }, end: Position { line: 12, column: 88, }, }, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 12, column: 10, }, end: Position { line: 12, column: 90, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "version", span: Span { start: Position { line: 12, column: 92, }, end: Position { line: 12, column: 99, }, }, }, ), }, ), Raw( PartRaw { content: "_amd64.deb", span: Span { start: Position { line: 12, column: 10, }, end: Position { line: 12, column: 110, }, }, }, ), ], span: Span { start: Position { line: 12, column: 9, }, end: Position { line: 12, column: 111, }, }, }, ), String( String_ { parts: [ Raw( PartRaw { content: "http://apt.netangels.net/pool/main/h/hpssacli/", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 64, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "pname", span: Span { start: Position { line: 13, column: 58, }, end: Position { line: 13, column: 63, }, }, }, ), }, ), Raw( PartRaw { content: "-", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 65, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "version", span: Span { start: Position { line: 13, column: 67, }, end: Position { line: 13, column: 74, }, }, }, ), }, ), Raw( PartRaw { content: "_amd64.deb", span: Span { start: Position { line: 13, column: 10, }, end: Position { line: 13, column: 85, }, }, }, ), ], span: Span { start: Position { line: 13, column: 9, }, end: Position { line: 13, column: 86, }, }, }, ), ], span: Span { start: Position { line: 11, column: 14, }, end: Position { line: 14, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "sha256", span: Span { start: Position { line: 15, column: 7, }, end: Position { line: 15, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "11w7fwk93lmfw0yya4jpjwdmgjimqxx6412sqa166g1pz4jil4sw", span: Span { start: Position { line: 15, column: 17, }, end: Position { line: 15, column: 69, }, }, }, ), ], span: Span { start: Position { line: 15, column: 16, }, end: Position { line: 15, column: 70, }, }, }, ), }, ), ], span: Span { start: Position { line: 10, column: 25, }, end: Position { line: 16, column: 6, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "nativeBuildInputs", span: Span { start: Position { line: 18, column: 5, }, end: Position { line: 18, column: 22, }, }, }, ), ], to: List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 18, column: 27, }, end: Position { line: 18, column: 31, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "dpkg", span: Span { start: Position { line: 18, column: 32, }, end: Position { line: 18, column: 36, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 18, column: 25, }, end: Position { line: 18, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "unpackPhase", span: Span { start: Position { line: 20, column: 5, }, end: Position { line: 20, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "dpkg -x $src ./", span: Span { start: Position { line: 20, column: 20, }, end: Position { line: 20, column: 35, }, }, }, ), ], span: Span { start: Position { line: 20, column: 19, }, end: Position { line: 20, column: 36, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "installPhase", span: Span { start: Position { line: 22, column: 5, }, end: Position { line: 22, column: 17, }, }, }, ), ], to: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "mkdir -p $out/bin $out/share/doc $out/share/man\nmv opt/hp/hpssacli/bld/{hpssascripting,hprmstr,hpssacli} $out/bin/\nmv opt/hp/hpssacli/bld/*.{license,txt} $out/share/doc/\nmv usr/man $out/share/\n\nfor file in $out/bin/*; do\n chmod +w $file\n patchelf --set-interpreter \"$(cat $NIX_CC/nix-support/dynamic-linker)\" \\\n --set-rpath ", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 31, column: 30, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 31, column: 32, }, end: Position { line: 31, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "makeLibraryPath", span: Span { start: Position { line: 31, column: 36, }, end: Position { line: 31, column: 51, }, }, }, ), ], default: None, }, ), arguments: [ List( List { elements: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "pkgs", span: Span { start: Position { line: 31, column: 54, }, end: Position { line: 31, column: 58, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "stdenv", span: Span { start: Position { line: 31, column: 59, }, end: Position { line: 31, column: 65, }, }, }, ), Raw( PartRaw { content: "cc", span: Span { start: Position { line: 31, column: 66, }, end: Position { line: 31, column: 68, }, }, }, ), Raw( PartRaw { content: "cc", span: Span { start: Position { line: 31, column: 69, }, end: Position { line: 31, column: 71, }, }, }, ), ], default: None, }, ), ], span: Span { start: Position { line: 31, column: 52, }, end: Position { line: 31, column: 73, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n $file\ndone\n", span: Span { start: Position { line: 23, column: 1, }, end: Position { line: 34, column: 5, }, }, }, ), ], span: Span { start: Position { line: 22, column: 20, }, end: Position { line: 34, column: 7, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "dontStrip", span: Span { start: Position { line: 36, column: 5, }, end: Position { line: 36, column: 14, }, }, }, ), ], to: Identifier( Identifier { id: "true", span: Span { start: Position { line: 36, column: 17, }, end: Position { line: 36, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 38, column: 5, }, end: Position { line: 38, column: 9, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 38, column: 17, }, end: Position { line: 38, column: 20, }, }, }, ), target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 39, column: 7, }, end: Position { line: 39, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "HP Smart Array CLI", span: Span { start: Position { line: 39, column: 22, }, end: Position { line: 39, column: 40, }, }, }, ), ], span: Span { start: Position { line: 39, column: 21, }, end: Position { line: 39, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "homepage", span: Span { start: Position { line: 40, column: 7, }, end: Position { line: 40, column: 15, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "https://downloads.linux.hpe.com/SDR/downloads/MCP/Ubuntu/pool/non-free/", span: Span { start: Position { line: 40, column: 19, }, end: Position { line: 40, column: 90, }, }, }, ), ], span: Span { start: Position { line: 40, column: 18, }, end: Position { line: 40, column: 91, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "license", span: Span { start: Position { line: 41, column: 7, }, end: Position { line: 41, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "licenses", span: Span { start: Position { line: 41, column: 17, }, end: Position { line: 41, column: 25, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "unfreeRedistributable", span: Span { start: Position { line: 41, column: 26, }, end: Position { line: 41, column: 47, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "platforms", span: Span { start: Position { line: 42, column: 7, }, end: Position { line: 42, column: 16, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "x86_64-linux", span: Span { start: Position { line: 42, column: 22, }, end: Position { line: 42, column: 34, }, }, }, ), ], span: Span { start: Position { line: 42, column: 21, }, end: Position { line: 42, column: 35, }, }, }, ), ], span: Span { start: Position { line: 42, column: 19, }, end: Position { line: 42, column: 37, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 43, column: 7, }, end: Position { line: 43, column: 18, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 43, column: 26, }, end: Position { line: 43, column: 37, }, }, }, ), target: List( List { elements: [], span: Span { start: Position { line: 43, column: 39, }, end: Position { line: 43, column: 42, }, }, }, ), span: Span { start: Position { line: 43, column: 21, }, end: Position { line: 43, column: 42, }, }, }, ), }, ), ], span: Span { start: Position { line: 38, column: 22, }, end: Position { line: 44, column: 6, }, }, }, ), span: Span { start: Position { line: 38, column: 12, }, end: Position { line: 44, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 6, column: 39, }, end: Position { line: 45, column: 4, }, }, }, ), ], }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 49, column: 3, }, end: Position { line: 49, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 50, column: 5, }, end: Position { line: 50, column: 13, }, }, }, ), Raw( PartRaw { content: "raid", span: Span { start: Position { line: 50, column: 14, }, end: Position { line: 50, column: 18, }, }, }, ), Raw( PartRaw { content: "HPSmartArray", span: Span { start: Position { line: 50, column: 19, }, end: Position { line: 50, column: 31, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "enable", span: Span { start: Position { line: 51, column: 7, }, end: Position { line: 51, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkEnableOption", span: Span { start: Position { line: 51, column: 16, }, end: Position { line: 51, column: 30, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 51, column: 32, }, end: Position { line: 51, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 51, column: 36, }, end: Position { line: 51, column: 41, }, }, }, ), ], default: None, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "HP Smart Array kernel modules and CLI utility", span: Span { start: Position { line: 51, column: 43, }, end: Position { line: 51, column: 88, }, }, }, ), ], span: Span { start: Position { line: 51, column: 42, }, end: Position { line: 51, column: 89, }, }, }, ), ], }, ), ], }, ), }, ), ], span: Span { start: Position { line: 50, column: 34, }, end: Position { line: 52, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 49, column: 13, }, end: Position { line: 53, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 57, column: 3, }, end: Position { line: 57, column: 9, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 57, column: 12, }, end: Position { line: 57, column: 16, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 57, column: 17, }, end: Position { line: 57, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "hardware", span: Span { start: Position { line: 57, column: 24, }, end: Position { line: 57, column: 32, }, }, }, ), Raw( PartRaw { content: "raid", span: Span { start: Position { line: 57, column: 33, }, end: Position { line: 57, column: 37, }, }, }, ), Raw( PartRaw { content: "HPSmartArray", span: Span { start: Position { line: 57, column: 38, }, end: Position { line: 57, column: 50, }, }, }, ), Raw( PartRaw { content: "enable", span: Span { start: Position { line: 57, column: 51, }, end: Position { line: 57, column: 57, }, }, }, ), ], default: None, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 59, column: 5, }, end: Position { line: 59, column: 9, }, }, }, ), Raw( PartRaw { content: "initrd", span: Span { start: Position { line: 59, column: 10, }, end: Position { line: 59, column: 16, }, }, }, ), Raw( PartRaw { content: "kernelModules", span: Span { start: Position { line: 59, column: 17, }, end: Position { line: 59, column: 30, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "sg", span: Span { start: Position { line: 59, column: 36, }, end: Position { line: 59, column: 38, }, }, }, ), ], span: Span { start: Position { line: 59, column: 35, }, end: Position { line: 59, column: 39, }, }, }, ), ], span: Span { start: Position { line: 59, column: 33, }, end: Position { line: 59, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "boot", span: Span { start: Position { line: 60, column: 5, }, end: Position { line: 60, column: 9, }, }, }, ), Raw( PartRaw { content: "initrd", span: Span { start: Position { line: 60, column: 10, }, end: Position { line: 60, column: 16, }, }, }, ), Raw( PartRaw { content: "availableKernelModules", span: Span { start: Position { line: 60, column: 17, }, end: Position { line: 60, column: 39, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "hpsa", span: Span { start: Position { line: 60, column: 45, }, end: Position { line: 60, column: 49, }, }, }, ), ], span: Span { start: Position { line: 60, column: 44, }, end: Position { line: 60, column: 50, }, }, }, ), ], span: Span { start: Position { line: 60, column: 42, }, end: Position { line: 60, column: 52, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 62, column: 5, }, end: Position { line: 62, column: 16, }, }, }, ), Raw( PartRaw { content: "systemPackages", span: Span { start: Position { line: 62, column: 17, }, end: Position { line: 62, column: 31, }, }, }, ), ], to: List( List { elements: [ Identifier( Identifier { id: "hpssacli", span: Span { start: Position { line: 62, column: 36, }, end: Position { line: 62, column: 44, }, }, }, ), ], span: Span { start: Position { line: 62, column: 34, }, end: Position { line: 62, column: 46, }, }, }, ), }, ), ], span: Span { start: Position { line: 57, column: 58, }, end: Position { line: 63, column: 4, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 46, column: 4, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 64, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 64, column: 2, }, }, }, )