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
[WIP] Adds unfree software (hidden by default) #300
[WIP] Adds unfree software (hidden by default) #300
Conversation
(cherry picked from commit ea73d79)
The transparent background will reduce the jarring effect of a dark zebra-stripe with a white-backgrounded button.
Looks like the unfree is visible by default now? |
Looks like it. That seems accidental. |
TLDR from IRC:
— https://logs.nix.samueldr.com/nixos-dev/2019-11-28#1574962120-1574963468; The situation is a bit more complex than intuition led me to believe. First of all, this is verifiable on the commits before the inclusion of the new package manager. This is the nixos-homepage commit introducing the issue. It's the benign upgrade to 19.03. The issue is actually in Nixpkgs. Bisecting, I found the commit introducing the issue:
Though, reverting this change (or re-creating it) does not solve the problem; it seems there are other commits in at least two inter-twined files that are relevant.
I do not know if this one can be an issue. I haven't had the time to dedicate to better dissect the actual issue through the layers of history that have been building on top of this initial breaking change. Thoughts(Though this is yet unsolved)
|
@samueldr Ouch, we should definitely revert/fix that ASAP and backport to 19.03/19.09. For a moment I was worried that this meant Hydra was building/distributing unfree software, but that appears not to be the case. |
@samueldr is this something we still need to finish? or we gave up? |
Two things here might be conflated together. First, the soul of this PR. This PR was split from the main #209 PR. It adds the machinery required to index unfree packages, and the machinery needed to choose between displaying them or not. Simply fixing the conflicts is required here if we want to add this feature to the site. Though note that @edolstra had shown reluctance in indexing unfree packages. This is why it was split off. Secondly, there is an added issue, where the way Nixpkgs filters unstable package is now broken. This is NixOS/nixpkgs#74622. This is not something that can be trivially fixed in nixos-homepage, and probably shouldn't. Though, with that said, if we merge this feature to the packages manager, we can regain control of showing unfree packages on the site. |
I'm closing this PR since we will rethink how to do this in https://github.com/NixOS/nixos-search |
Depends on #209 being merged.
Adds back the unfree software listing.
Here's a reminder of my reasoning: