diff --git a/pkgs/development/interpreters/ruby/gems.nix b/pkgs/development/interpreters/ruby/gems.nix index cb91d92c382b..2dd1739d49f7 100644 --- a/pkgs/development/interpreters/ruby/gems.nix +++ b/pkgs/development/interpreters/ruby/gems.nix @@ -48,7 +48,7 @@ in importGems = file: args: let # 1. Load set of gem names and versions from a bundix-created expression. - gemset = callPackage file { }; + gemset = if (builtins.isAttrs file) then file else (callPackage file { }); # 2. Allow gems to be overriden by providing a derivation yourself. config = gemset // (args gemset); # 3.