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:
parent
0ef3e9e148
commit
c0426f6fe7
1 changed files with 24 additions and 0 deletions
24
pkgs/development/interpreters/ruby/gems.nix
Normal file
24
pkgs/development/interpreters/ruby/gems.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue