summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorYannick Markus <ym@ymarkus.dev>2021-12-08 14:27:52 +0100
committerYannick Markus <ym@ymarkus.dev>2021-12-08 14:27:52 +0100
commitb8a221262b7a16bb6be806d0f909cd582a61bcb7 (patch)
tree4b5bf7edef54a6f7365c6d5d78c65c24c7c196a1 /doc/languages-frameworks
parentfb9da4b685742ee4dc48c6cf2e97e2598469f452 (diff)
downloadnixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar.gz
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar.bz2
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar.lz
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar.xz
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.tar.zst
nixpkgs-b8a221262b7a16bb6be806d0f909cd582a61bcb7.zip
doc: ruby-section: add workaround for platform-specific gems
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/ruby.section.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/languages-frameworks/ruby.section.md b/doc/languages-frameworks/ruby.section.md
index 5e2f72ed61e..e29f97c566c 100644
--- a/doc/languages-frameworks/ruby.section.md
+++ b/doc/languages-frameworks/ruby.section.md
@@ -201,6 +201,19 @@ $ nix-shell --run 'ruby -rpg -e "puts PG.library_version"'
 
 Of course for this use-case one could also use overlays since the configuration for `pg` depends on the `postgresql` alias, but for demonstration purposes this has to suffice.
 
+### Platform-specific gems
+
+Right now, bundix has some issues with pre-built, platform-specific gems: [bundix PR #68](https://github.com/nix-community/bundix/pull/68).
+Until this is solved, you can tell bundler to not use platform-specific gems and instead build them from source each time:
+- globally (will be set in `~/.config/.bundle/config`):
+```shell
+$ bundle config set force_ruby_platform true
+```
+- locally (will be set in `<project-root>/.bundle/config`):
+```shell
+$ bundle config set --local force_ruby_platform true
+```
+
 ### Adding a gem to the default gemset {#adding-a-gem-to-the-default-gemset}
 
 Now that you know how to get a working Ruby environment with Nix, it's time to go forward and start actually developing with Ruby. We will first have a look at how Ruby gems are packaged on Nix. Then, we will look at how you can use development mode with your code.