Hacker News new | ask | show | jobs
by tkz1312 887 days ago
The metric you are looking for is the non-unique one on repology which counts only packages that are available on multiple distros. This is in fact the category where nixpkgs has the largest lead.

I think nixpkgs is probably so much larger for two reasons:

- running unpackaged software on nixos is painful. - it’s very easy to contribute to nixpkgs (standard github pr to a monorepo).

1 comments

Those includes all those packages which aren't packaged on other distros due to them being expected to be available via their native tooling. Examples are the entirety of pythonPackages, haskellPackages, emacsPackags. vscodePackages etc. Which I mentioned before in this very thread.

It makes little sense if you compare it like this. It would be stupid for any other package repo to include those package since they already exist. The only reason nixpkgs needs to do it is for purity reasons.

The metric that matters is "how many packages can I easily install on this distro". And nixpkgs most certainly is not in the lead here.

I don’t follow. Non-unique packages is a metric that explicitly only includes packages that are present across multiple distros?
A package is non-unique if it is available in at least 2 repositories. Guess what. Repology tracks Guix as well which means many packages will be just in those two repos, marking them as non-unique.

If you want a non-misleading comparison you have to remove all these packages, which are actually managed by a different package manager every. from nixpkgs and put that into repology.

You can remove the entirety of the guix package set (26468) from the non-unique part of nixpkgs (71875) and it would still be the largest non-unique package set (second largest non-unique is AUR at 37900).
Guix is just an example there are other distros with some subsets packaged.