From ad3d8864897cc094915143720298fca2b7c357ca Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 5 Oct 2008 09:00:56 +0000 Subject: [PATCH] Two Ruby modules svn path=/nixpkgs/trunk/; revision=12954 --- .../development/ruby-modules/rake/default.nix | 19 +++++++++++++++++++ .../ruby-modules/sqlite3/default.nix | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/ruby-modules/rake/default.nix create mode 100644 pkgs/development/ruby-modules/sqlite3/default.nix diff --git a/pkgs/development/ruby-modules/rake/default.nix b/pkgs/development/ruby-modules/rake/default.nix new file mode 100644 index 000000000000..7e724f9773af --- /dev/null +++ b/pkgs/development/ruby-modules/rake/default.nix @@ -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 + ''; +} diff --git a/pkgs/development/ruby-modules/sqlite3/default.nix b/pkgs/development/ruby-modules/sqlite3/default.nix new file mode 100644 index 000000000000..a37e91c488ff --- /dev/null +++ b/pkgs/development/ruby-modules/sqlite3/default.nix @@ -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 + ''; +}