From c0426f6fe7c10ed649aa8068177ae57fb281b10e Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Apr 2008 09:23:33 +0000 Subject: [PATCH] Added Ruby Gems. I have no idea how to better use repository-provided dependencies. svn path=/nixpkgs/trunk/; revision=11557 --- pkgs/development/interpreters/ruby/gems.nix | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/development/interpreters/ruby/gems.nix diff --git a/pkgs/development/interpreters/ruby/gems.nix b/pkgs/development/interpreters/ruby/gems.nix new file mode 100644 index 000000000000..49702be7e40a --- /dev/null +++ b/pkgs/development/interpreters/ruby/gems.nix @@ -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"; + }; +}