From 26053cae74248f77bf34fb2a3f0efa0ec2af822f Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 11 Dec 2018 21:22:45 +0000 Subject: [PATCH] bundlerEnv: always include default gems "default" isn't really a group, it's more the absence of one. With Bundler, this means that a gem should be installed unconditionally, regardless of which groups are specified. It doesn't really make sense to allow these gems to be omitted from a bundlerEnv. --- pkgs/development/ruby-modules/bundled-common/functions.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ruby-modules/bundled-common/functions.nix b/pkgs/development/ruby-modules/bundled-common/functions.nix index f477b2bee7cb..6324f27e9faf 100644 --- a/pkgs/development/ruby-modules/bundled-common/functions.nix +++ b/pkgs/development/ruby-modules/bundled-common/functions.nix @@ -52,7 +52,7 @@ in rec { groupMatches = groups: attrs: groups == null || !(attrs ? "groups") || - (intersectLists groups attrs.groups) != []; + (intersectLists (groups ++ [ "default" ]) attrs.groups) != []; applyGemConfigs = attrs: (if gemConfig ? "${attrs.gemName}"