diff --git a/pkgs/development/interpreters/ruby/gems.nix b/pkgs/development/interpreters/ruby/gems.nix new file mode 100644 index 000000000000..49702be7e40a --- /dev/null +++ b/pkgs/development/interpreters/ruby/gems.nix @@ -0,0 +1,24 @@ +args : with args; +rec { + src = fetchurl { + url = http://rubyforge.org/frs/download.php/35283/rubygems-1.1.1.tgz; + sha256 = "1qb4crmx1dihmk1am93ly437480jvp7lh4pbiwy5ir19hqnfh71b"; + }; + version = "1.1.1"; + + buildInputs = [ruby makeWrapper]; + configureFlags = []; + + doInstall = FullDepEntry ('' + ruby setup.rb --prefix=$out/ + wrapProgram $out/bin/gem --prefix RUBYLIB : $out/lib:$out/lib + '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + + /* doConfigure should be specified separately */ + phaseNames = ["doInstall"]; + + name = "rubygems-" + version; + meta = { + description = "Ruby package collection"; + }; +}