Two Ruby modules
svn path=/nixpkgs/trunk/; revision=12954
This commit is contained in:
parent
034f28e268
commit
ad3d886489
19
pkgs/development/ruby-modules/rake/default.nix
Normal file
19
pkgs/development/ruby-modules/rake/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{stdenv, fetchurl, ruby}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "rake-0.8.1";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://rubyforge.org/frs/download.php/29752/rake-0.8.1.tgz";
|
||||||
|
sha256 = "1kggvkkj609hj1xvpadzchki66i7ynz3qq4nc2hmfkf536fx8c03";
|
||||||
|
};
|
||||||
|
buildInputs = [ruby];
|
||||||
|
buildPhase = "true";
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir $out/lib
|
||||||
|
ensureDir $out/bin
|
||||||
|
ruby setup.rb config --prefix=$out
|
||||||
|
# --bindir $out/bin --libdir $out/lib
|
||||||
|
ruby setup.rb setup
|
||||||
|
ruby setup.rb install
|
||||||
|
'';
|
||||||
|
}
|
18
pkgs/development/ruby-modules/sqlite3/default.nix
Normal file
18
pkgs/development/ruby-modules/sqlite3/default.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{stdenv, fetchurl, ruby, sqlite}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "ruby-sqlite3-1.2.4";
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://rubyforge.org/frs/download.php/42055/sqlite3-ruby-1.2.4.tar.bz2;
|
||||||
|
sha256 = "1mmhlrggzdsbhpmifv1iibrf4ch3ycm878pxil3x3xhf9l6vp0a7";
|
||||||
|
};
|
||||||
|
buildInputs = [ruby sqlite];
|
||||||
|
buildPhase = "true";
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir $out/lib
|
||||||
|
ruby setup.rb config --prefix=$out
|
||||||
|
# --bindir $out/bin --libdir $out/lib
|
||||||
|
ruby setup.rb setup
|
||||||
|
ruby setup.rb install
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user