NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.81k stars 13.91k forks source link

RFC all-packages inherit descriptive list #119201

Open happysalada opened 3 years ago

happysalada commented 3 years ago

Issue description

in the all-packages.nix there are places where there is a inherit with a long list. Examples are https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L2052 https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L10077 and https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L11599

To be sure, we are talking about something that looks like

inherit (beam.interpreters)
    erlang erlangR23 erlangR22 erlangR21 erlangR20 erlangR19 erlangR18
    erlang_odbc erlang_javac erlang_odbc_javac erlang_basho_R16B02
    elixir elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7;

It does feel like there would be a way to do a recursive inherit, however I haven't found a way.

I have 2 questions

The reason I am asking is that there is a discussion about it, and it doesn't really feel it belongs in the PR.

Sorry if this feels like bike-shedding.

@SuperSandro2000 don't really know what tags to add and who to involve here.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info