如何构建 NixOS/nixpkgs 手册?

How to build NixOS/nixpkgs manuals?

如何为 NixOS 和 nixpkgs 构建手册?

我有时也会报错:

error: a 'aarch64-linux' with features {} is required to build '...options.xml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

对于 NixOS:

$ nix-build nixos/release.nix -A manualHTML.x86_64-linux

对于 Nixpkgs:

$ nix-build doc

构建 NixOS 手册时出现错误

error: a 'aarch64-linux' with features {} is required to build '...options.xml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

这意味着您忘记指定 .x86_64-linux 属性。