···121121mkShell { buildInputs = [ gems (lowPrio gems.wrappedRuby) ]; }
122122```
123123124124+Sometimes a Gemfile references other files. Such as `.ruby-version` or vendored gems. When copying the Gemfile to the nix store we need to copy those files alongside. This can be done using `extraConfigPaths`. For example:
125125+126126+```nix
127127+ gems = bundlerEnv {
128128+ name = "gems-for-some-project";
129129+ gemdir = ./.;
130130+ extraConfigPaths = [ "${./.}/.ruby-version" ];
131131+ };
132132+```
133133+124134### Gem-specific configurations and workarounds {#gem-specific-configurations-and-workarounds}
125135126136In some cases, especially if the gem has native extensions, you might need to modify the way the gem is built.