Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos: add some more related packages #41764

Merged
merged 2 commits into from Jun 13, 2018

Conversation

oxij
Copy link
Member

@oxij oxij commented Jun 9, 2018

Adds relatedPackages for xserver's xf86video packages for discoverability. Most of them don't have particularly useful docstrings, but that can be fixed later.

@oxij
Copy link
Member Author

oxij commented Jun 11, 2018

@7c6f434c Could you please merge this? I think it's trivial enough.

(mapAttrsToList (n: v:
optional (hasPrefix "xf86video" n) {
name = removePrefix "xf86video" n;
prefix = "[pkgs.xf86video]";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this generate [pkgs.xf86video]-modesetting somewhere in the manual or do I fail at reviewing this code?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would, but pkgs/servers/x11/xorg/default.nix doesn't have it. grepping the repo gives the following fact: "modesetting does not have a xf86videomodesetting package as it is included in xorgserver"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant general format: [pkgs.xf86video]nouveau, say. I am trying to check if square brackets are intentional and what is their intent.

@oxij
Copy link
Member Author

oxij commented Jun 12, 2018 via email

@7c6f434c
Copy link
Member

I would say that nouveau (pkgs.xorg.xf86videonouveau) + something in the description looks most promising w.r.t. clarity/length.

@oxij oxij force-pushed the nixos/some-more-related-packages branch from 645835e to b01ccbb Compare June 13, 2018 16:34
@oxij
Copy link
Member Author

oxij commented Jun 13, 2018 via email

@7c6f434c
Copy link
Member

I don't like meta.name here, but I don't use NixOS and it was already there.

@7c6f434c 7c6f434c merged commit f35cc5e into NixOS:master Jun 13, 2018
@oxij
Copy link
Member Author

oxij commented Jun 13, 2018 via email

@7c6f434c
Copy link
Member

It being there for some time means nobody cares to complain, and I try to avoid making judgement calls on controversial NixOS changes.

nix-env searches by name, true, and this is a problem more than a solution. I mean, when I gave Nix to someone who does not want to learn it well. I gave it with a script that does both installation and removal by attribute path because name-addressing of packages is just too expensive and also sometimes confusing.

My idea of a perfect NixOS manual says that the text of the manual doesn't change at all if you apply a lot of patchlevel bumps that all (magically) happen to be completely bacwards compatible.

@oxij oxij deleted the nixos/some-more-related-packages branch November 18, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants