summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/ruby/dev.nix
blob: cd37d3a324e8e8b95ab984b6c1aa8194beaeb3c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
  An environment for development that bundles ruby, bundler and bundix
  together. This avoids version conflicts where each is using a different
  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;
}