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

Remove wrapped packages from Nixpkgs? #484

Closed
jtojnar opened this issue May 24, 2021 · 6 comments
Closed

Remove wrapped packages from Nixpkgs? #484

jtojnar opened this issue May 24, 2021 · 6 comments

Comments

@jtojnar
Copy link
Contributor

jtojnar commented May 24, 2021

In nixpkgs we often have packages that combine a package with its plugins:

https://repology.org/projects/?search=-with-plugins
https://repology.org/projects/?search=-with-extensions
https://repology.org/projects/?search=-wrapper&inrepo=nix_unstable – this sometimes occurs in project names so perhaps only uniques should be skipped

Would it make sense to filter them out?

@AMDmi3
Copy link
Member

AMDmi3 commented May 24, 2021

What do you mean by filtering out? These should generally be merged into corresponding projects with unsuffixed names, but for that there's need to reliably strip the suffixes. As far as I can see that's not even possible for -with-plugins because there may be multiple suffixes.

@jtojnar
Copy link
Contributor Author

jtojnar commented May 24, 2021

I meant something like:

- { ruleset: nix, namepat: ".+-with-plugins", remove: true }
- { ruleset: nix, namepat: ".+-with-extensions", remove: true }
- { ruleset: nix, namepat: ".+-wrapper", unique: true, remove: true } # not sure how to express to only remove packages unique to Nixpkgs since there are some real projects with this namepat

Those packages really are just a pseudo-package that allows user to use a package with specific plug-ins enabled and have little to do with the project. For example, inkscape-with-plugins currently installs inkscape-1.0.1, hexmap-2020-06-06 and inkcut-inkscape-plugin.

But yeah, there can be multiple suffixes as in asciidoc-full-with-plugins. We might want to standardize a metadata format for descriptions on our side first.

Feel free to close this until then.

@AMDmi3
Copy link
Member

AMDmi3 commented May 24, 2021

If these are pseudo-packages, it makes sense. -wrapper case needs small core changes repology/repology-updater/issues/1151 to be able to only hide uniques.

@AMDmi3
Copy link
Member

AMDmi3 commented May 24, 2021

Although wait, how about this one: https://repology.org/project/zathura/versions#nix_stable. There's no package without plugins.

@jtojnar
Copy link
Contributor Author

jtojnar commented May 24, 2021

You are right, that is messier than I realized. Some programs are useless without plug-ins so there is no unwrapped package exposed. I guess there is nothing to do until we standardize this in Nixpkgs.

@AMDmi3
Copy link
Member

AMDmi3 commented May 24, 2021

Ok, leaving it as is for now.

@AMDmi3 AMDmi3 closed this as completed May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants