2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-27 08:04:14 +00:00
nixpkgs/pkgs/development/interpreters/ruby
Juan Ibiapina 62e5acd0a7
ruby: Expose generic builder ()
To avoid duplicating the ruby compilation code, this change exposes two
functions `mkRubyVersion` and `mkRuby`, which can be used in an overlay
to build any past or current ruby version.

An example overlay:
```nix
self: super:

{
  ruby_2_7_6 = super.mkRuby {
    version = super.mkRubyVersion "2" "7" "6" "";
    sha256 = "042xrdk7hsv4072bayz3f8ffqh61i8zlhvck10nfshllq063n877";
  };

  ruby_3_1_2 = super.mkRuby {
    version = super.mkRubyVersion "3" "1" "2" "";
    sha256 = "0gm84ipk6mrfw94852w5h7xxk2lqrxjbnlwb88svf0lz70933131";
  };
}
```
2022-07-04 11:57:06 +02:00
..
rubygems rubygems: rename name to pname 2022-02-28 23:39:42 +01:00
config.nix
default.nix ruby: Expose generic builder () 2022-07-04 11:57:06 +02:00
dev.nix
do-not-regenerate-revision.h.patch
do-not-update-gems-baseruby.patch
patchsets.nix ruby_3_1: 3.1.1 -> 3.1.2 2022-04-15 02:22:24 +02:00
rbconfig.rb
rbinstall-new-rubygems-compat.patch ruby: fix build with bundled gems 2022-03-15 21:57:36 +09:00
ruby-version.nix
rvm-patchsets.nix