Skip to content

nixos: doc: implement related packages in the manual#32424

Merged
jagajaga merged 6 commits intoNixOS:masterfrom
oxij:nixos/related-packages
Dec 23, 2017
Merged

nixos: doc: implement related packages in the manual#32424
jagajaga merged 6 commits intoNixOS:masterfrom
oxij:nixos/related-packages

Conversation

@oxij
Copy link
Member

@oxij oxij commented Dec 7, 2017

Motivation for this change

A rebase and a partial rewrite of #14860 which I can't reopen for some reason that implements #9306 (finally!).

This version doesn't define any new types or mkOptions. It's super-uber-simple.

It does this
screenshot
(that's an old screenshot from #14860, this version looks a tiny bit different, but I'm too lazy to make a new one, its close enough)
when you write f56b582.

Adding relatedPackages to options puts a pressure on package maintainers to maintain good package descriptions or else the manual would look very ugly. Its a good thing.

Things done

oxij added 6 commits December 7, 2017 21:26
…f their option group

Why? Because this way configuration.nix(5) can be read linearly.

Before:

> virtualisation.xen.bootParams
> ...
> virtualisation.xen.enable
> ...
> virtualisation.xen.package
> ...

After:

> virtualisation.xen.enable
> virtualisation.xen.package
> virtualisation.xen.bootParams
> ...
This allows one to specify "related packages" in NixOS that get rendered into
the configuration.nix(5) man page. The interface philosophy is pretty much
stolen from TeX bibliography.
@oxij oxij requested review from edolstra and nbp as code owners December 7, 2017 21:47
@oxij oxij changed the title nixos: implement related packages nixos: implement related packages in the manual Dec 7, 2017
@oxij oxij changed the title nixos: implement related packages in the manual nixos: doc: implement related packages in the manual Dec 7, 2017
@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 7, 2017
@jagajaga
Copy link
Member

jagajaga commented Dec 8, 2017

Awesome PR!

@oxij
Copy link
Member Author

oxij commented Dec 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants