nix: generate man pages, update to 2.30.5.#60742
Open
JkktBkkt wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As-is, running commands like
nix-... --helporman nix-...orxmandoc nix-...doesn't provide any help or manual page. For some unbeknownst to me reason, the manual page works, i.e. https://man.voidlinux.org/man1/nix-build.1A workaround is available:
nix profile add nixpkgs#nixHowever, not all installations use nix profiles.
A fix has been added to v2.34+ NixOS/nix#14952
Though building that version fails:
Details
And in cross as well, a bit earlier than that:
Details
So as a bit of a compromise, bump nix to latest 2.30.x release and enable building man pages.
These appear somewhat messy with all the md inclusions like: <../../command-ref/conf-file.md#command-line-flags>
But I do think it's better than nothing. Example excerpt:
Details
The file manifest.nix <../command-ref/files/manifest.nix.md> is always ignored. The command nix-channel <../command-ref/nix-channel.md> places a symlink to the current user’s channels <../command-ref/files/channels.md> in this directory, the user channel link <#user-channel-link>. This makes all subscribed channels available as attributes in the default expression. User channel link A symlink that ensures that nix-env <../command-ref/nix-env.md> can find the current user’s channels <../command-ref/files/channels.md>: • ~/.nix-defexpr/channels • $XDG_STATE_HOME/defexpr/channels if use-xdg-base-directories <../command-ref/conf-file.md#conf-use-xdg-base-directories> is set to true.Testing the changes
Local build testing