NixOS' package search does not show, when a package is broken

NixOS’ package search does not show, when a package is broken. This bothers me and I can not find any reason, why it does not show this prominently.

1 Like

Assuming you mean NixOS Search, you can click on “Show more package details”, then click on your platform to see the latest hydra evals for the package.

For example go to https://search.nixos.org/packages?channel=26.05&query=btop#show=btop and click on x86_64-linux

Does this do what you want?

2 Likes

@withakay No it does not show, if a package is marked as broken. E. g. Childishly simple. No strain on the contrary, they like it. It's. does not indicate clearly the broken mark. The only indication is, that the last build was quite a while ago.

@waffle8946 Ok, so this is a known issue. Unfortunately no one seems to work on it.

hmmmm… I see you mean broken the meta attribute.

Looking at nixpkgs documentation for broken, I’m actually surprised it shows up on the search at all since that link says that

broken

If set to true, the package is marked as “broken”, meaning that it won’t show up
in search.nixos.org, and cannot be built or installed unless explicitly allowed.
Such unconditionally-broken packages should be removed from Nixpkgs eventually
unless they are fixed.

Does anyone know if this is a documentation error in nixpkgs or a filtering error in nixos-search?

Yes, there is definitely a mismatch between the documentation and the behavior.

Actually though, if you follow your link, it says right at the top:

This job is not a member of the latest evaluation of its jobset. This means it was removed or had an evaluation error.

One workaround is to use third-party package search websites. For example, Nix Software shows whether a package is marked as broken, whether it is currently supported, and also lists any known vulnerabilities that have been found.