Added Ruby Gems. I have no idea how to better use repository-provided dependencies.

svn path=/nixpkgs/trunk/; revision=11557
This commit is contained in:
Michael Raskin 2008-04-11 09:23:33 +00:00
parent 0ef3e9e148
commit c0426f6fe7

View file

@ -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";
};
}