---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "prefix",
    default: Some(
     Path {
      parts: [
       Raw {
        content: "../../..",
       },
      ],
      position: (9, 12),
     },
    ),
   },
   FunctionArgument {
    identifier: "warningsAreErrors",
    default: Some(
     Variable {
      identifier: "true",
      position: (8, 23),
     },
    ),
   },
   FunctionArgument {
    identifier: "baseOptionsJSON",
    default: Some(
     Variable {
      identifier: "null",
      position: (7, 21),
     },
    ),
   },
   FunctionArgument {
    identifier: "extraSources",
    default: Some(
     List {
      elements: [],
      position: (6, 18),
     },
    ),
   },
   FunctionArgument {
    identifier: "revision",
    default: None,
   },
   FunctionArgument {
    identifier: "version",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
   FunctionArgument {
    identifier: "options",
    default: None,
   },
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
  ],
  ellipsis: false,
 },
 definition: With {
  expression: Variable {
   identifier: "pkgs",
   position: (12, 6),
  },
  target: LetIn {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "lib",
        position: (15, 3),
       },
      ],
     },
     PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (15, 9),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "lib",
         position: (15, 14),
        },
       ],
      },
      default: None,
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "docbook_xsl_ns",
        position: (17, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (17, 20),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "docbook-xsl-ns",
          position: (17, 25),
         },
         Raw {
          content: "override",
          position: (17, 40),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "withManOptDedupPatch",
             position: (18, 5),
            },
           ],
          },
          Variable {
           identifier: "true",
           position: (18, 28),
          },
         ),
        ],
        recursive: false,
        position: (17, 49),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "prefixesToStrip",
        position: (27, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "map",
       position: (27, 21),
      },
      arguments: [
       Function {
        argument: Some(
         "p",
        ),
        arguments: FunctionArguments {
         arguments: [],
         ellipsis: false,
        },
        definition: String {
         parts: [
          Expression {
           expression: FunctionApplication {
            function: Variable {
             identifier: "toString",
             position: (27, 32),
            },
            arguments: [
             Variable {
              identifier: "p",
              position: (27, 41),
             },
            ],
           },
          },
          Raw {
           content: "/",
          },
         ],
         position: (27, 29),
        },
        position: (27, 26),
       },
       BinaryOperation {
        operator: Concatenation,
        operands: [
         List {
          elements: [
           Variable {
            identifier: "prefix",
            position: (27, 50),
           },
          ],
          position: (27, 48),
         },
         Variable {
          identifier: "extraSources",
          position: (27, 62),
         },
        ],
        position: (27, 59),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "stripAnyPrefixes",
        position: (28, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (28, 22),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "flip",
          position: (28, 26),
         },
        ],
       },
       default: None,
      },
      arguments: [
       FunctionApplication {
        function: PropertyAccess {
         expression: Variable {
          identifier: "lib",
          position: (28, 32),
         },
         attribute_path: AttributePath {
          attributes: [
           Raw {
            content: "foldr",
            position: (28, 36),
           },
          ],
         },
         default: None,
        },
        arguments: [
         PropertyAccess {
          expression: Variable {
           identifier: "lib",
           position: (28, 42),
          },
          attribute_path: AttributePath {
           attributes: [
            Raw {
             content: "removePrefix",
             position: (28, 46),
            },
           ],
          },
          default: None,
         },
        ],
       },
       Variable {
        identifier: "prefixesToStrip",
        position: (28, 60),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "optionsDoc",
        position: (30, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "buildPackages",
        position: (30, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "nixosOptionsDoc",
          position: (30, 30),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [
         Inherit(
          None,
          [
           Raw {
            content: "options",
            position: (31, 13),
           },
           Raw {
            content: "revision",
            position: (31, 21),
           },
           Raw {
            content: "baseOptionsJSON",
            position: (31, 30),
           },
           Raw {
            content: "warningsAreErrors",
            position: (31, 46),
           },
          ],
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "transformOptions",
             position: (32, 5),
            },
           ],
          },
          Function {
           argument: Some(
            "opt",
           ),
           arguments: FunctionArguments {
            arguments: [],
            ellipsis: false,
           },
           definition: BinaryOperation {
            operator: Update,
            operands: [
             Variable {
              identifier: "opt",
              position: (32, 29),
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "declarations",
                   position: (34, 7),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "map",
                  position: (34, 22),
                 },
                 arguments: [
                  Variable {
                   identifier: "stripAnyPrefixes",
                   position: (34, 26),
                  },
                  PropertyAccess {
                   expression: Variable {
                    identifier: "opt",
                    position: (34, 43),
                   },
                   attribute_path: AttributePath {
                    attributes: [
                     Raw {
                      content: "declarations",
                      position: (34, 47),
                     },
                    ],
                   },
                   default: None,
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (32, 36),
             },
            ],
            position: (32, 33),
           },
           position: (32, 24),
          },
         ),
        ],
        recursive: false,
        position: (30, 46),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "sources",
        position: (38, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "lib",
        position: (38, 13),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "sourceFilesBySuffices",
          position: (38, 17),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Path {
        parts: [
         Raw {
          content: "./.",
         },
        ],
        position: (38, 39),
       },
       List {
        elements: [
         String {
          parts: [
           Raw {
            content: ".xml",
           },
          ],
          position: (38, 44),
         },
        ],
        position: (38, 43),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "modulesDoc",
        position: (40, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "builtins",
        position: (40, 16),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "toFile",
          position: (40, 25),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "modules.xml",
         },
        ],
        position: (40, 32),
       },
       String {
        parts: [
         Raw {
          content: "<section xmlns:xi=\"http://www.w3.org/2001/XInclude\" id=\"modules\">\n",
         },
         Expression {
          expression: FunctionApplication {
           function: PropertyAccess {
            expression: Variable {
             identifier: "lib",
             position: (42, 8),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "concatMapStrings",
               position: (42, 12),
              },
             ],
            },
            default: None,
           },
           arguments: [
            Function {
             argument: Some(
              "path",
             ),
             arguments: FunctionArguments {
              arguments: [],
              ellipsis: false,
             },
             definition: String {
              parts: [
               Raw {
                content: "<xi:include href=\"",
               },
               Expression {
                expression: Variable {
                 identifier: "path",
                 position: (43, 27),
                },
               },
               Raw {
                content: "\" />\n",
               },
              ],
              position: (42, 36),
             },
             position: (42, 30),
            },
            FunctionApplication {
             function: PropertyAccess {
              expression: Variable {
               identifier: "lib",
               position: (44, 10),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "catAttrs",
                 position: (44, 14),
                },
               ],
              },
              default: None,
             },
             arguments: [
              String {
               parts: [
                Raw {
                 content: "value",
                },
               ],
               position: (44, 23),
              },
              PropertyAccess {
               expression: Variable {
                identifier: "config",
                position: (44, 31),
               },
               attribute_path: AttributePath {
                attributes: [
                 Raw {
                  content: "meta",
                  position: (44, 38),
                 },
                 Raw {
                  content: "doc",
                  position: (44, 43),
                 },
                ],
               },
               default: None,
              },
             ],
            },
           ],
          },
         },
         Raw {
          content: "\n</section>\n",
         },
        ],
        position: (40, 46),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "generatedSources",
        position: (48, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "runCommand",
       position: (48, 22),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "generated-docbook",
         },
        ],
        position: (48, 33),
       },
       Map {
        bindings: [],
        recursive: false,
        position: (48, 53),
       },
       String {
        parts: [
         Raw {
          content: "mkdir $out\nln -s ",
         },
         Expression {
          expression: Variable {
           identifier: "modulesDoc",
           position: (50, 13),
          },
         },
         Raw {
          content: " $out/modules.xml\nln -s ",
         },
         Expression {
          expression: PropertyAccess {
           expression: Variable {
            identifier: "optionsDoc",
            position: (51, 13),
           },
           attribute_path: AttributePath {
            attributes: [
             Raw {
              content: "optionsDocBook",
              position: (51, 24),
             },
            ],
           },
           default: None,
          },
         },
         Raw {
          content: " $out/options-db.xml\nprintf \"%s\" \"",
         },
         Expression {
          expression: Variable {
           identifier: "version",
           position: (52, 20),
          },
         },
         Raw {
          content: "\" > $out/version\n",
         },
        ],
        position: (48, 56),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "copySources",
        position: (55, 3),
       },
      ],
     },
     String {
      parts: [
       Raw {
        content: "cp -prd $sources/* . # */\nln -s ",
       },
       Expression {
        expression: Variable {
         identifier: "generatedSources",
         position: (58, 15),
        },
       },
       Raw {
        content: " ./generated\nchmod -R u+w .\n",
       },
      ],
      position: (56, 5),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "toc",
        position: (62, 3),
       },
      ],
     },
     FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "builtins",
        position: (62, 9),
       },
       attribute_path: AttributePath {
        attributes: [
         Raw {
          content: "toFile",
          position: (62, 18),
         },
        ],
       },
       default: None,
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "toc.xml",
         },
        ],
        position: (62, 25),
       },
       String {
        parts: [
         Raw {
          content: "<toc role=\"chunk-toc\">\n  <d:tocentry xmlns:d=\"http://docbook.org/ns/docbook\" linkend=\"book-nixos-manual\"><?dbhtml filename=\"index.html\"?>\n    <d:tocentry linkend=\"ch-options\"><?dbhtml filename=\"options.html\"?></d:tocentry>\n    <d:tocentry linkend=\"ch-release-notes\"><?dbhtml filename=\"release-notes.html\"?></d:tocentry>\n  </d:tocentry>\n</toc>\n",
         },
        ],
        position: (63, 5),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "manualXsltprocOptions",
        position: (72, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "toString",
       position: (72, 27),
      },
      arguments: [
       List {
        elements: [
         String {
          parts: [
           Raw {
            content: "--param section.autolabel 1",
           },
          ],
          position: (73, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param section.label.includes.component.label 1",
           },
          ],
          position: (74, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'",
           },
          ],
          position: (75, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'",
           },
          ],
          position: (76, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param xref.with.number.and.title 1",
           },
          ],
          position: (77, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param toc.section.depth 0",
           },
          ],
          position: (78, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param generate.consistent.ids 1",
           },
          ],
          position: (79, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam admon.style ''",
           },
          ],
          position: (80, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam callout.graphics.extension .svg",
           },
          ],
          position: (81, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam current.docid manual",
           },
          ],
          position: (82, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param chunk.section.depth 0",
           },
          ],
          position: (83, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param chunk.first.sections 1",
           },
          ],
          position: (84, 5),
         },
         String {
          parts: [
           Raw {
            content: "--param use.id.as.filename 1",
           },
          ],
          position: (85, 5),
         },
         String {
          parts: [
           Raw {
            content: "--stringparam chunk.toc ",
           },
           Expression {
            expression: Variable {
             identifier: "toc",
             position: (86, 32),
            },
           },
          ],
          position: (86, 5),
         },
        ],
        position: (72, 36),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "manual-combined",
        position: (89, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "runCommand",
       position: (89, 21),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "nixos-manual-combined",
         },
        ],
        position: (89, 32),
       },
       Map {
        bindings: [
         Inherit(
          None,
          [
           Raw {
            content: "sources",
            position: (90, 15),
           },
          ],
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "nativeBuildInputs",
             position: (91, 7),
            },
           ],
          },
          List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "buildPackages",
              position: (91, 29),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "libxml2",
                position: (91, 43),
               },
               Raw {
                content: "bin",
                position: (91, 51),
               },
              ],
             },
             default: None,
            },
            PropertyAccess {
             expression: Variable {
              identifier: "buildPackages",
              position: (91, 55),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "libxslt",
                position: (91, 69),
               },
               Raw {
                content: "bin",
                position: (91, 77),
               },
              ],
             },
             default: None,
            },
           ],
           position: (91, 27),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "meta",
             position: (92, 7),
            },
            Raw {
             content: "description",
             position: (92, 12),
            },
           ],
          },
          String {
           parts: [
            Raw {
             content: "The NixOS manual as plain docbook XML",
            },
           ],
           position: (92, 26),
          },
         ),
        ],
        recursive: false,
        position: (90, 5),
       },
       String {
        parts: [
         Raw {
          content: "",
         },
         Expression {
          expression: Variable {
           identifier: "copySources",
           position: (95, 9),
          },
         },
         Raw {
          content: "\n\nxmllint --xinclude --output ./manual-combined.xml ./manual.xml\nxmllint --xinclude --noxincludenode \\\n   --output ./man-pages-combined.xml ./man-pages.xml\n\n# outputs the context of an xmllint error output\n# LEN lines around the failing line are printed\nfunction context {\n  # length of context\n  local LEN=6\n  # lines to print before error line\n  local BEFORE=4\n\n  # xmllint output lines are:\n  # file.xml:1234: there was an error on line 1234\n  while IFS=':' read -r file line rest; do\n    echo\n    if [[ -n \"$rest\" ]]; then\n      echo \"$file:$line:$rest\"\n      local FROM=$(($line>$BEFORE ? $line - $BEFORE : 1))\n      # number lines & filter context\n      nl --body-numbering=a \"$file\" | sed -n \"$FROM,+$LEN p\"\n    else\n      if [[ -n \"$line\" ]]; then\n        echo \"$file:$line\"\n      else\n        echo \"$file\"\n      fi\n    fi\n  done\n}\n\nfunction lintrng {\n  xmllint --debug --noout --nonet \\\n    --relaxng ",
         },
         Expression {
          expression: Variable {
           identifier: "docbook5",
           position: (130, 23),
          },
         },
         Raw {
          content: "/xml/rng/docbook/docbook.rng \\\n    \"$1\" \\\n    2>&1 | context 1>&2\n    # ^ redirect assumes xmllint doesn’t print to stdout\n}\n\nlintrng manual-combined.xml\nlintrng man-pages-combined.xml\n\nmkdir $out\ncp manual-combined.xml $out/\ncp man-pages-combined.xml $out/\n",
         },
        ],
        position: (94, 5),
       },
      ],
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "olinkDB",
        position: (144, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "runCommand",
       position: (144, 13),
      },
      arguments: [
       String {
        parts: [
         Raw {
          content: "manual-olinkdb",
         },
        ],
        position: (144, 24),
       },
       Map {
        bindings: [
         Inherit(
          None,
          [
           Raw {
            content: "sources",
            position: (145, 15),
           },
          ],
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "nativeBuildInputs",
             position: (146, 7),
            },
           ],
          },
          List {
           elements: [
            PropertyAccess {
             expression: Variable {
              identifier: "buildPackages",
              position: (146, 29),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "libxml2",
                position: (146, 43),
               },
               Raw {
                content: "bin",
                position: (146, 51),
               },
              ],
             },
             default: None,
            },
            PropertyAccess {
             expression: Variable {
              identifier: "buildPackages",
              position: (146, 55),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "libxslt",
                position: (146, 69),
               },
               Raw {
                content: "bin",
                position: (146, 77),
               },
              ],
             },
             default: None,
            },
           ],
           position: (146, 27),
          },
         ),
        ],
        recursive: false,
        position: (145, 5),
       },
       String {
        parts: [
         Raw {
          content: "xsltproc \\\n  ",
         },
         Expression {
          expression: Variable {
           identifier: "manualXsltprocOptions",
           position: (150, 11),
          },
         },
         Raw {
          content: " \\\n  --stringparam collect.xref.targets only \\\n  --stringparam targets.filename \"$out/manual.db\" \\\n  --nonet \\\n  ",
         },
         Expression {
          expression: Variable {
           identifier: "docbook_xsl_ns",
           position: (154, 11),
          },
         },
         Raw {
          content: "/xml/xsl/docbook/xhtml/chunktoc.xsl \\\n  ",
         },
         Expression {
          expression: Variable {
           identifier: "manual-combined",
           position: (155, 11),
          },
         },
         Raw {
          content: "/manual-combined.xml\n\ncat > \"$out/olinkdb.xml\" <<EOF\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE targetset SYSTEM\n  \"file://",
         },
         Expression {
          expression: Variable {
           identifier: "docbook_xsl_ns",
           position: (160, 19),
          },
         },
         Raw {
          content: "/xml/xsl/docbook/common/targetdatabase.dtd\" [\n  <!ENTITY manualtargets SYSTEM \"file://$out/manual.db\">\n]>\n<targetset>\n  <targetsetinfo>\n      Allows for cross-referencing olinks between the manpages\n      and manual.\n  </targetsetinfo>\n\n  <document targetdoc=\"manual\">&manualtargets;</document>\n</targetset>\nEOF\n",
         },
        ],
        position: (148, 5),
       },
      ],
     },
    ),
   ],
   target: Map {
    bindings: [
     Inherit(
      None,
      [
       Raw {
        content: "generatedSources",
        position: (175, 11),
       },
      ],
     ),
     Inherit(
      Some(
       Variable {
        identifier: "optionsDoc",
        position: (177, 12),
       },
      ),
      [
       Raw {
        content: "optionsJSON",
        position: (177, 24),
       },
       Raw {
        content: "optionsNix",
        position: (177, 36),
       },
       Raw {
        content: "optionsDocBook",
        position: (177, 47),
       },
      ],
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "manualHTML",
         position: (180, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "runCommand",
        position: (180, 16),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "nixos-manual-html",
          },
         ],
         position: (180, 27),
        },
        Map {
         bindings: [
          Inherit(
           None,
           [
            Raw {
             content: "sources",
             position: (181, 15),
            },
           ],
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "nativeBuildInputs",
              position: (182, 7),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (182, 29),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxml2",
                 position: (182, 43),
                },
                Raw {
                 content: "bin",
                 position: (182, 51),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (182, 55),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxslt",
                 position: (182, 69),
                },
                Raw {
                 content: "bin",
                 position: (182, 77),
                },
               ],
              },
              default: None,
             },
            ],
            position: (182, 27),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "meta",
              position: (183, 7),
             },
             Raw {
              content: "description",
              position: (183, 12),
             },
            ],
           },
           String {
            parts: [
             Raw {
              content: "The NixOS manual in HTML format",
             },
            ],
            position: (183, 26),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "allowedReferences",
              position: (184, 7),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "out",
               },
              ],
              position: (184, 28),
             },
            ],
            position: (184, 27),
           },
          ),
         ],
         recursive: false,
         position: (181, 5),
        },
        String {
         parts: [
          Raw {
           content: "# Generate the HTML manual.\ndst=$out/share/doc/nixos\nmkdir -p $dst\nxsltproc \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "manualXsltprocOptions",
            position: (191, 11),
           },
          },
          Raw {
           content: " \\\n  --stringparam target.database.document \"",
          },
          Expression {
           expression: Variable {
            identifier: "olinkDB",
            position: (192, 51),
           },
          },
          Raw {
           content: "/olinkdb.xml\" \\\n  --stringparam id.warnings \"1\" \\\n  --nonet --output $dst/ \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "docbook_xsl_ns",
            position: (195, 11),
           },
          },
          Raw {
           content: "/xml/xsl/docbook/xhtml/chunktoc.xsl \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "manual-combined",
            position: (196, 11),
           },
          },
          Raw {
           content: "/manual-combined.xml \\\n  |& tee xsltproc.out\ngrep \"^ID recommended on\" xsltproc.out &>/dev/null && echo \"error: some IDs are missing\" && false\nrm xsltproc.out\n\nmkdir -p $dst/images/callouts\ncp ",
          },
          Expression {
           expression: Variable {
            identifier: "docbook_xsl_ns",
            position: (202, 12),
           },
          },
          Raw {
           content: "/xml/xsl/docbook/images/callouts/*.svg $dst/images/callouts/\n\ncp ",
          },
          Expression {
           expression: Path {
            parts: [
             Raw {
              content: "../../../doc/style.css",
             },
            ],
            position: (204, 12),
           },
          },
          Raw {
           content: " $dst/style.css\ncp ",
          },
          Expression {
           expression: Path {
            parts: [
             Raw {
              content: "../../../doc/overrides.css",
             },
            ],
            position: (205, 12),
           },
          },
          Raw {
           content: " $dst/overrides.css\ncp -r ",
          },
          Expression {
           expression: PropertyAccess {
            expression: Variable {
             identifier: "pkgs",
             position: (206, 15),
            },
            attribute_path: AttributePath {
             attributes: [
              Raw {
               content: "documentation-highlighter",
               position: (206, 20),
              },
             ],
            },
            default: None,
           },
          },
          Raw {
           content: " $dst/highlightjs\n\nmkdir -p $out/nix-support\necho \"nix-build out $out\" >> $out/nix-support/hydra-build-products\necho \"doc manual $dst\" >> $out/nix-support/hydra-build-products\n",
          },
         ],
         position: (186, 5),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "manual",
         position: (214, 3),
        },
       ],
      },
      Variable {
       identifier: "manualHTML",
       position: (214, 12),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "manualHTMLIndex",
         position: (217, 3),
        },
       ],
      },
      String {
       parts: [
        Expression {
         expression: Variable {
          identifier: "manualHTML",
          position: (217, 24),
         },
        },
        Raw {
         content: "/share/doc/nixos/index.html",
        },
       ],
       position: (217, 21),
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "manualEpub",
         position: (219, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "runCommand",
        position: (219, 16),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "nixos-manual-epub",
          },
         ],
         position: (219, 27),
        },
        Map {
         bindings: [
          Inherit(
           None,
           [
            Raw {
             content: "sources",
             position: (220, 15),
            },
           ],
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "nativeBuildInputs",
              position: (221, 7),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (221, 29),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxml2",
                 position: (221, 43),
                },
                Raw {
                 content: "bin",
                 position: (221, 51),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (221, 55),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxslt",
                 position: (221, 69),
                },
                Raw {
                 content: "bin",
                 position: (221, 77),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (221, 81),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "zip",
                 position: (221, 95),
                },
               ],
              },
              default: None,
             },
            ],
            position: (221, 27),
           },
          ),
         ],
         recursive: false,
         position: (220, 5),
        },
        String {
         parts: [
          Raw {
           content: "# Generate the epub manual.\ndst=$out/share/doc/nixos\n\nxsltproc \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "manualXsltprocOptions",
            position: (228, 11),
           },
          },
          Raw {
           content: " \\\n  --stringparam target.database.document \"",
          },
          Expression {
           expression: Variable {
            identifier: "olinkDB",
            position: (229, 51),
           },
          },
          Raw {
           content: "/olinkdb.xml\" \\\n  --nonet --xinclude --output $dst/epub/ \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "docbook_xsl_ns",
            position: (231, 11),
           },
          },
          Raw {
           content: "/xml/xsl/docbook/epub/docbook.xsl \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "manual-combined",
            position: (232, 11),
           },
          },
          Raw {
           content: "/manual-combined.xml\n\nmkdir -p $dst/epub/OEBPS/images/callouts\ncp -r ",
          },
          Expression {
           expression: Variable {
            identifier: "docbook_xsl_ns",
            position: (235, 15),
           },
          },
          Raw {
           content: "/xml/xsl/docbook/images/callouts/*.svg $dst/epub/OEBPS/images/callouts # */\necho \"application/epub+zip\" > mimetype\nmanual=\"$dst/nixos-manual.epub\"\nzip -0Xq \"$manual\" mimetype\ncd $dst/epub && zip -Xr9D \"$manual\" *\n\nrm -rf $dst/epub\n\nmkdir -p $out/nix-support\necho \"doc-epub manual $manual\" >> $out/nix-support/hydra-build-products\n",
          },
         ],
         position: (223, 5),
        },
       ],
      },
     ),
     KeyValue(
      AttributePath {
       attributes: [
        Raw {
         content: "manpages",
         position: (249, 3),
        },
       ],
      },
      FunctionApplication {
       function: Variable {
        identifier: "runCommand",
        position: (249, 14),
       },
       arguments: [
        String {
         parts: [
          Raw {
           content: "nixos-manpages",
          },
         ],
         position: (249, 25),
        },
        Map {
         bindings: [
          Inherit(
           None,
           [
            Raw {
             content: "sources",
             position: (250, 15),
            },
           ],
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "nativeBuildInputs",
              position: (251, 7),
             },
            ],
           },
           List {
            elements: [
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (251, 29),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxml2",
                 position: (251, 43),
                },
                Raw {
                 content: "bin",
                 position: (251, 51),
                },
               ],
              },
              default: None,
             },
             PropertyAccess {
              expression: Variable {
               identifier: "buildPackages",
               position: (251, 55),
              },
              attribute_path: AttributePath {
               attributes: [
                Raw {
                 content: "libxslt",
                 position: (251, 69),
                },
                Raw {
                 content: "bin",
                 position: (251, 77),
                },
               ],
              },
              default: None,
             },
            ],
            position: (251, 27),
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "allowedReferences",
              position: (252, 7),
             },
            ],
           },
           List {
            elements: [
             String {
              parts: [
               Raw {
                content: "out",
               },
              ],
              position: (252, 28),
             },
            ],
            position: (252, 27),
           },
          ),
         ],
         recursive: false,
         position: (250, 5),
        },
        String {
         parts: [
          Raw {
           content: "# Generate manpages.\nmkdir -p $out/share/man\nxsltproc --nonet \\\n  --maxdepth 6000 \\\n  --param man.output.in.separate.dir 1 \\\n  --param man.output.base.dir \"",
          },
          Raw {
           content: "'",
          },
          Raw {
           content: "$out/share/man/'\" \\\n  --param man.endnotes.are.numbered 0 \\\n  --param man.break.after.slash 1 \\\n  --stringparam target.database.document \"",
          },
          Expression {
           expression: Variable {
            identifier: "olinkDB",
            position: (263, 51),
           },
          },
          Raw {
           content: "/olinkdb.xml\" \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "docbook_xsl_ns",
            position: (264, 11),
           },
          },
          Raw {
           content: "/xml/xsl/docbook/manpages/docbook.xsl \\\n  ",
          },
          Expression {
           expression: Variable {
            identifier: "manual-combined",
            position: (265, 11),
           },
          },
          Raw {
           content: "/man-pages-combined.xml\n",
          },
         ],
         position: (254, 5),
        },
       ],
      },
     ),
    ],
    recursive: true,
    position: (174, 4),
   },
   position: (14, 1),
  },
  position: (12, 1),
 },
 position: (1, 1),
}