Commit 32f75a0f authored by Doron Behar's avatar Doron Behar
Browse files

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.
parent 9d0bb6e6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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} \
Loading