about summary refs log tree commit diff
path: root/doc/languages-frameworks/ruby.section.md
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-09-15 08:13:32 -0500
committerGitHub <noreply@github.com>2023-09-15 08:13:32 -0500
commit3b1f3712a415f6bf8352f3bb457973daa8bce91d (patch)
tree9e6fcf3bb457a87282de6d119f2377c7d8047b5a /doc/languages-frameworks/ruby.section.md
parent833a6ec799bc6d8f770a6a40c9032c3eba9c5a30 (diff)
parentfbe107fd5c7ca142f84d2552ef14364f0de2aa7b (diff)
downloadnixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar.gz
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar.bz2
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar.lz
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar.xz
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.tar.zst
nixlib-3b1f3712a415f6bf8352f3bb457973daa8bce91d.zip
Merge pull request #255128 from PuercoPop/ruby-document-extraConfigPaths
ruby: document extraConfigPaths option from bundlerEnv
Diffstat (limited to 'doc/languages-frameworks/ruby.section.md')
-rw-r--r--doc/languages-frameworks/ruby.section.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/languages-frameworks/ruby.section.md b/doc/languages-frameworks/ruby.section.md
index 3a4c94de9292..d3b896686c06 100644
--- a/doc/languages-frameworks/ruby.section.md
+++ b/doc/languages-frameworks/ruby.section.md
@@ -121,6 +121,16 @@ One common issue that you might have is that you have Ruby 2.6, but also `bundle
 mkShell { buildInputs = [ gems (lowPrio gems.wrappedRuby) ]; }
 ```
 
+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:
+
+```nix
+  gems = bundlerEnv {
+    name = "gems-for-some-project";
+    gemdir = ./.;
+    extraConfigPaths = [ "${./.}/.ruby-version" ];
+  };
+```
+
 ### Gem-specific configurations and workarounds {#gem-specific-configurations-and-workarounds}
 
 In some cases, especially if the gem has native extensions, you might need to modify the way the gem is built.