mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
25 lines
519 B
Nix
25 lines
519 B
Nix
|
/* 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 {
|
||
|
ruby = ruby;
|
||
|
bundler = bundler_;
|
||
|
};
|
||
|
in
|
||
|
buildEnv {
|
||
|
name = "${ruby.rubyEngine}-dev-${ruby.version}";
|
||
|
paths = [
|
||
|
bundix_
|
||
|
bundler_
|
||
|
ruby
|
||
|
];
|
||
|
pathsToLink = [ "/bin" ];
|
||
|
ignoreCollisions = true;
|
||
|
}
|