2008-04-11 11:23:33 +02:00
|
|
|
args : with args;
|
|
|
|
rec {
|
2009-06-30 16:29:17 +02:00
|
|
|
|
|
|
|
# some packages (eg ruby-debug) still require 1.8. So let's stick to that for
|
|
|
|
# now if nobody has different requirements
|
|
|
|
|
|
|
|
version = "1.3.4";
|
2008-04-11 11:23:33 +02:00
|
|
|
src = fetchurl {
|
2009-06-30 16:29:17 +02:00
|
|
|
url = "http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz";
|
|
|
|
sha256 = "1z5vvwdf7cwiq669amfxzqd88bn576yq6d9c5c6c92fm9sib1d0y";
|
2008-04-11 11:23:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ruby makeWrapper];
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
doInstall = fullDepEntry (''
|
2008-04-11 11:23:33 +02:00
|
|
|
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-03 00:25:54 +02:00
|
|
|
description = "Ruby gems package collection";
|
2008-10-19 14:59:34 +02:00
|
|
|
longDescription = ''
|
2009-06-30 16:29:20 +02:00
|
|
|
see comment in rubyLibs to get to know how to use ruby gems in nix
|
2008-10-19 14:59:34 +02:00
|
|
|
'';
|
2008-04-11 11:23:33 +02:00
|
|
|
};
|
2009-06-30 16:29:20 +02:00
|
|
|
|
|
|
|
# TODO don't resolve 302 redirects but make nix resolve in fetchurl and
|
|
|
|
# nix-prefetch-url. This should be done on stdenv-updates.
|
|
|
|
patches = [ ./gem_nix_command.patch /* see longDescription above */ ];
|
2008-04-11 11:23:33 +02:00
|
|
|
}
|