2020-04-24 23:36:52 +00:00
|
|
|
/* An environment for development that bundles ruby, bundler and bundix
|
2023-07-15 17:15:38 +00:00
|
|
|
together. This avoids version conflicts where each is using a different
|
2020-04-24 23:36:52 +00:00
|
|
|
version of each-other.
|
|
|
|
*/
|
|
|
|
{ buildEnv, ruby, bundler, bundix }:
|
|
|
|
let
|
|
|
|
bundler_ = bundler.override {
|
|
|
|
ruby = ruby;
|
|
|
|
};
|
|
|
|
bundix_ = bundix.override {
|
|
|
|
bundler = bundler_;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildEnv {
|
|
|
|
name = "${ruby.rubyEngine}-dev-${ruby.version}";
|
|
|
|
paths = [
|
|
|
|
bundix_
|
|
|
|
bundler_
|
|
|
|
ruby
|
|
|
|
];
|
|
|
|
pathsToLink = [ "/bin" ];
|
|
|
|
ignoreCollisions = true;
|
|
|
|
}
|