summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-12-09 01:35:50 +0000
committerAlyssa Ross <hi@alyssa.is>2021-12-09 01:43:58 +0000
commitc9a581b05fa3eca0b02982398b5c2f3559f882ad (patch)
treed0939a074304b8ccabb154f6c5a60f34f234a547 /doc
parent259565656c0107a3f112d41c120ab9ef4e79b5d3 (diff)
parent9da11d94ee46af4956c7cc4ac526a99b0305132d (diff)
downloadnixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar.gz
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar.bz2
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar.lz
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar.xz
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.tar.zst
nixpkgs-c9a581b05fa3eca0b02982398b5c2f3559f882ad.zip
Merge remote-tracking branch 'nixpkgs/master' into staging-next
CONFLICT (rename/add): Rename pkgs/development/python-modules/jsonwatch/default.nix->pkgs/tools/misc/jsonwatch/default.nix in nixpkgs/master.  Added pkgs/tools/misc/jsonwatch/default.nix in HEAD
Diffstat (limited to 'doc')
-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.