2008-04-11 10:23:33 +01:00
|
|
|
args : with args;
|
|
|
|
rec {
|
2008-08-02 23:25:54 +01:00
|
|
|
version = "1.2.0";
|
2008-04-11 10:23:33 +01:00
|
|
|
src = fetchurl {
|
2008-08-02 23:25:54 +01:00
|
|
|
url = "http://rubyforge.org/frs/download.php/38646/rubygems-${version}.tgz";
|
|
|
|
sha256 = "0b9ppgs9av4z344s13wp40ki72prxyz3q0hmsf5swx7xhl54bbr8";
|
2008-04-11 10:23:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
2008-08-02 23:25:54 +01:00
|
|
|
description = "Ruby gems package collection";
|
2008-04-11 10:23:33 +01:00
|
|
|
};
|
|
|
|
}
|