diff --git a/doc/languages-frameworks/ruby.xml b/doc/languages-frameworks/ruby.xml index a2b4475a4a5..d81422b610e 100644 --- a/doc/languages-frameworks/ruby.xml +++ b/doc/languages-frameworks/ruby.xml @@ -42,5 +42,37 @@ and scalable."; Please check in the Gemfile, Gemfile.lock and the gemset.nix so future updates can be run easily. +Resulting derivations also have two helpful items, env and wrapper. The first one allows one to quickly drop into +nix-shell with the specified environment present. E.g. nix-shell -A sensu.env would give you an environment with Ruby preset +so it has all the libraries necessary for sensu in its paths. The second one can be used to make derivations from custom Ruby scripts which have +Gemfiles with their dependencies specified. It is a derivation with ruby wrapped so it can find all the needed dependencies. +For example, to make a derivation my-script for a my-script.rb (which should be placed in bin) you should +run bundix as specified above and then use bundlerEnv lile this: + + + + +