---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "comp",
    default: Some(
     String {
      parts: [
       Raw {
        content: "xz -Xdict-size 100%",
        position: (8, 11),
       },
      ],
     },
    ),
   },
   FunctionArgument {
    identifier: "storeContents",
    default: Some(
     List {
      elements: [],
      position: (5, 19),
     },
    ),
   },
   FunctionArgument {
    identifier: "closureInfo",
    default: None,
   },
   FunctionArgument {
    identifier: "squashfsTools",
    default: None,
   },
   FunctionArgument {
    identifier: "stdenv",
    default: None,
   },
  ],
  ellipsis: false,
 },
 definition: FunctionApplication {
  function: PropertyAccess {
   expression: Variable {
    identifier: "stdenv",
    position: (11, 1),
   },
   attribute_path: AttributePath {
    attributes: [
     Raw {
      content: "mkDerivation",
      position: (11, 8),
     },
    ],
   },
   default: None,
  },
  arguments: [
   Map {
    bindings: [
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "name",
         position: (12, 3),
        },
       ],
      },
      String {
       parts: [
        Raw {
         content: "squashfs.img",
         position: (12, 11),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "nativeBuildInputs",
         position: (14, 3),
        },
       ],
      },
      List {
       elements: [
        Variable {
         identifier: "squashfsTools",
         position: (14, 25),
        },
       ],
       position: (14, 23),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "buildCommand",
         position: (16, 3),
        },
       ],
      },
      String {
       parts: [
        Raw {
         content: "closureInfo=",
         position: (18, 1),
        },
        Expression {
         expression: FunctionApplication {
          function: Variable {
           identifier: "closureInfo",
           position: (18, 21),
          },
          arguments: [
           Map {
            bindings: [
             KeyValue(
              AttributePath {
               attributes: [
                Raw {
                 content: "rootPaths",
                 position: (18, 35),
                },
               ],
              },
              Variable {
               identifier: "storeContents",
               position: (18, 47),
              },
             ),
            ],
            recursive: false,
            position: (18, 33),
           },
          ],
         },
        },
        Raw {
         content: "\n\n# Also include a manifest of the closures in a format suitable\n# for nix-store --load-db.\ncp $closureInfo/registration nix-path-registration\n\n# 64 cores on i686 does not work\n# fails with FATAL ERROR: mangle2:: xz compress failed with error code 5\nif ((NIX_BUILD_CORES > 48)); then\n  NIX_BUILD_CORES=48\nfi\n\n# Generate the squashfs image.\nmksquashfs nix-path-registration $(cat $closureInfo/store-paths) $out \\\n  -no-hardlinks -keep-as-directory -all-root -b 1048576 -comp ",
         position: (18, 64),
        },
        Expression {
         expression: Variable {
          identifier: "comp",
          position: (32, 71),
         },
        },
        Raw {
         content: " \\\n  -processors $NIX_BUILD_CORES\n",
         position: (32, 76),
        },
       ],
      },
     ),
    ],
    recursive: false,
    position: (11, 21),
   },
  ],
 },
 position: (1, 1),
}