lol

Merge pull request #255128 from PuercoPop/ruby-document-extraConfigPaths

ruby: document extraConfigPaths option from bundlerEnv

authored by

Mario Rodas and committed by
GitHub
3b1f3712 833a6ec7

+10
+10
doc/languages-frameworks/ruby.section.md
··· 121 121 mkShell { buildInputs = [ gems (lowPrio gems.wrappedRuby) ]; } 122 122 ``` 123 123 124 + 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: 125 + 126 + ```nix 127 + gems = bundlerEnv { 128 + name = "gems-for-some-project"; 129 + gemdir = ./.; 130 + extraConfigPaths = [ "${./.}/.ruby-version" ]; 131 + }; 132 + ``` 133 + 124 134 ### Gem-specific configurations and workarounds {#gem-specific-configurations-and-workarounds} 125 135 126 136 In some cases, especially if the gem has native extensions, you might need to modify the way the gem is built.