diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-08-12 13:13:14 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-08-12 18:01:06 +0300 |
commit | 32f75a0f2af55b50061629fd4e51221f15ada457 (patch) | |
tree | 83e8559ab2eddd545c70acc6ed0f732ba7e898b0 /nixos/doc/manual/default.nix | |
parent | 9d0bb6e67a4a1922fefc9c0a35bd5b1f0482aaac (diff) |
nixos/install-tools: Add manpages to packages instead of seperating them
Since each such `nixos-*` tool has it's own derivation, exposed in pkgs, There is no point in separating the manuals from the packages. If someone wishes to have the tools without the manuals, they can use meta.outputsToInstall to disable the installation of the manpages of these packages. This Fixes #244450.
Diffstat (limited to 'nixos/doc/manual/default.nix')
-rw-r--r-- | nixos/doc/manual/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/doc/manual/default.nix b/nixos/doc/manual/default.nix index 902dee7018010..962c74edee893 100644 --- a/nixos/doc/manual/default.nix +++ b/nixos/doc/manual/default.nix @@ -184,8 +184,8 @@ in rec { ''; - # Generate the NixOS manpages. - manpages = runCommand "nixos-manpages" + # Generate the configuration.nix manual package + configuration-manual = runCommand "nixos-manpages" { nativeBuildInputs = [ buildPackages.installShellFiles buildPackages.nixos-render-docs @@ -194,8 +194,6 @@ in rec { } '' # Generate manpages. - mkdir -p $out/share/man/man8 - installManPage ${./manpages}/* mkdir -p $out/share/man/man5 nixos-render-docs -j $NIX_BUILD_CORES options manpage \ --revision ${lib.escapeShellArg revision} \ |