Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1/* An environment for development that bundles ruby, bundler and bundix 2 together. This avoids version conflicts where each is using a different 3 version of each-other. 4*/ 5{ buildEnv, ruby, bundler, bundix }: 6let 7 bundler_ = bundler.override { 8 ruby = ruby; 9 }; 10 bundix_ = bundix.override { 11 bundler = bundler_; 12 }; 13in 14buildEnv { 15 name = "${ruby.rubyEngine}-dev-${ruby.version}"; 16 paths = [ 17 bundix_ 18 bundler_ 19 ruby 20 ]; 21 pathsToLink = [ "/bin" ]; 22 ignoreCollisions = true; 23}