Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

bundlerEnv: include all groups by default

This wasn't really an issue until the latest minor release of Bundix
(2.4), because prior to then Bundix didn't emit group attributes, and so
this functionality of bundlerEnv wasn't really used. However, it is now
apparent that a better default for bundlerEnv would be to include all
gem groups by default, not just the default group. This matches the
behavior of Bundler, and makes more sense, because the default group
alone isn't necessarily useful for anything -- consider a Rails app with
production, development, and test groups. It has the additional benefit
of being backwards compatible with how this would have worked before the
Bundix update.

+6 -6
+1 -1
pkgs/development/ruby-modules/bundled-common/default.nix
··· 17 , postBuild ? null 18 , document ? [] 19 , meta ? {} 20 - , groups ? ["default"] 21 , ignoreCollisions ? false 22 , buildInputs ? [] 23 , ...
··· 17 , postBuild ? null 18 , document ? [] 19 , meta ? {} 20 + , groups ? null 21 , ignoreCollisions ? false 22 , buildInputs ? [] 23 , ...
+5 -5
pkgs/development/ruby-modules/bundled-common/functions.nix
··· 1 { lib, gemConfig, ... }: 2 3 let 4 - inherit (lib) attrValues concatMap converge filterAttrs getAttrs; 5 6 in rec { 7 bundlerFiles = { ··· 49 ) attrs.platforms 50 ); 51 52 - groupMatches = groups: attrs: ( 53 - !(attrs ? "groups") || 54 - builtins.any (gemGroup: builtins.any (group: group == gemGroup) groups) attrs.groups 55 - ); 56 57 applyGemConfigs = attrs: 58 (if gemConfig ? "${attrs.gemName}"
··· 1 { lib, gemConfig, ... }: 2 3 let 4 + inherit (lib) attrValues concatMap converge filterAttrs getAttrs 5 + intersectLists; 6 7 in rec { 8 bundlerFiles = { ··· 50 ) attrs.platforms 51 ); 52 53 + groupMatches = groups: attrs: 54 + groups == null || !(attrs ? "groups") || 55 + (intersectLists groups attrs.groups) != []; 56 57 applyGemConfigs = attrs: 58 (if gemConfig ? "${attrs.gemName}"