summary refs log tree commit diff
path: root/pkgs/development/interpreters/ruby/dev.nix
blob: 62d561fbc14268ba75430c75abd612abba4ce2dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* An environment for development that bundles ruby, bundler and bundix
   together. This avoids version conflicts where each is using a diferent
   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;
}