Skip to content

Commit 3a5fccc

Browse files
outdated building instructions, update documentation.md
The current instructions for building the Nix manual include a command that doesn't work as described. Specifically: ``` nix build .#nix^doc ``` Running this command results in the error: ``` error: derivation '/nix/store/hddqxzfqgx2fhj8q66ss3idym7pk7aj1-nix-2.26.0pre20250107_383ab87.drv' does not have wanted outputs 'doc' ``` However, this command works if you specify the Nix version explicitly, such as: ``` nix build nix/2.24.11#nix^doc ``` Additionally, these commands are run within the Nix root directory. However, the nix build .#nix^doc command does work when run from the nixpkgs directory and generates the NixOS manual. I'm not sure if I'm missing something. Is the `nix^doc` supposed to be added somehow to flake outputs? The incremental build section does not work since as make has been decommissioned in favor of Meson. Should this be simply deleted?
1 parent 2f3bc6c commit 3a5fccc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/manual/source/development/documentation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ nix-build -E '(import ./.).packages.${builtins.currentSystem}.nix.doc'
1919
or
2020

2121
```console
22-
nix build .#nix^doc
22+
nix build .#nix-manual
2323
```
2424

25-
and open `./result-doc/share/doc/nix/manual/index.html`.
25+
and open `./result/share/doc/nix/manual/index.html`.
26+
2627

2728
To build the manual incrementally, [enter the development shell](./building.md) and run:
2829

0 commit comments

Comments
 (0)