treewide: switch instances of lib.teams.*.members to the new meta.teams attribute#400458
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute#400458numinit merged 2 commits intoNixOS:masterfrom
Conversation
This was an edge case that NixOS#400458 missed, as there was no reason to evaluate NixOS configurations during the review process. This fixes the meta attribute inheritance in the wrapped version of `xfce.thunar`, which would only be called by a NixOS module, and does not appear in the main package set. Reported-by: stormytuna <[email protected]> Signed-off-by: Fernando Rodrigues <[email protected]>
|
This broke eval of packages under nextcloud30Packages.apps with: and also of varnish60Packages.{digest,dynamic,modules}: |
|
@jopejoe1 I think this should work, it just didn't match any previous use patterns. diff --git a/pkgs/build-support/fetchnextcloudapp/default.nix b/pkgs/build-support/fetchnextcloudapp/default.nix
index ccc079b70204..31f35c0568d3 100644
--- a/pkgs/build-support/fetchnextcloudapp/default.nix
+++ b/pkgs/build-support/fetchnextcloudapp/default.nix
@@ -16,6 +16,7 @@
description ? null,
homepage ? null,
maintainers ? [ ],
+ teams ? [ ],
unpack ? false, # whether to use fetchzip rather than fetchurl
}:
applyPatches (
@@ -27,7 +28,7 @@ applyPatches (
{
license = lib.licenses.${license};
longDescription = description;
- inherit homepage maintainers;
+ inherit homepage maintainers teams;
}
// lib.optionalAttrs (description != null) {
longDescription = description; |
Another edge case of #400458. Reported-by: jopejoe1 <[email protected]> Signed-off-by: Fernando Rodrigues <[email protected]>
Another edge case of #400458. Reported-by: jopejoe1 <[email protected]> Signed-off-by: Fernando Rodrigues <[email protected]>
NixOS/nixpkgs#400458 broke this by replacing `meta.maintainers = [ teams.gnome.members ]` with `meta.teams = [ teams.gnome ]`
NixOS/nixpkgs#400458 broke this by replacing `meta.maintainers = [ teams.gnome.members ]` with `meta.teams = [ teams.gnome ]`
This was an edge case that NixOS#400458 missed, as there was no reason to evaluate NixOS configurations during the review process. This fixes the meta attribute inheritance in the wrapped version of `xfce.thunar`, which would only be called by a NixOS module, and does not appear in the main package set. Reported-by: stormytuna <[email protected]> Signed-off-by: Fernando Rodrigues <[email protected]>
|
Nixos package search doesn't pull the teams members anymore, so now there are lots of packages with missing maintainer information. |
|
We need to PR for nixos-search. |
|
Already mentioned, NixOS/nixos-search#914. This PR just needs someone who is knowledgeable with NixOS search to figure out how to test it. |
Sorry, was hidden by github... |
|
Repology now has a PR to make things visible again repology/repology-updater#1492 |
This is a work-around that resolves the issues that spawned from #400458 by adding the team members from teams declared in `meta.teams` to `meta.maintainers`, effectively restoring the original behaviour of the `maintainers` attribute, and thus allowing downstreams to keep consuming `meta.maintainers` without any extra changes to support `meta.teams`. Follow-up to #394797. Signed-off-by: Fernando Rodrigues <[email protected]>
Follow-up to #394797.
This is my first treewide, and I don't think I broke anything, but I would appreciate a thorough review.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.