2008-08-29 15:53:28 +02:00
|
|
|
{stdenv, fetchurl, sqlite, ruby }:
|
|
|
|
|
2008-10-05 10:48:49 +02:00
|
|
|
# Package builds rq with all dependencies into one blob. This to ascertain
|
|
|
|
# the combination of packages works.
|
|
|
|
|
2008-08-29 15:53:28 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rq-3.4.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.codeforpeople.com/lib/ruby/rq/rq-3.4.0.tgz;
|
|
|
|
sha256 = "1g8wiv83dcn4vzk9wjjzs9vjnwzwpy4h84h34cj32wfz793wfb8b";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
|
2008-10-05 10:48:49 +02:00
|
|
|
# patch checks for existing stdin file - sent it upstream
|
|
|
|
patches = [ ./rq.patch ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd all
|
|
|
|
./install.sh $out
|
|
|
|
cd ..
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
'';
|
|
|
|
|
2008-08-29 15:53:28 +02:00
|
|
|
meta = {
|
|
|
|
license = "Ruby";
|
|
|
|
homepage = "http://www.codeforpeople.com/lib/ruby/rq/";
|
2008-10-05 10:48:49 +02:00
|
|
|
description = "Simple cluster queue runner";
|
|
|
|
longDescription = "rq creates instant linux clusters by managing priority work queues, even on a multi-core single machine. This cluster runner is easy to install and easy to manage, contrasting with the common complicated solutions.";
|
|
|
|
pkgMaintainer = "Pjotr Prins";
|
|
|
|
# rq installs a separate Ruby interpreter, which has lower priority
|
|
|
|
priority = "10";
|
2008-08-29 15:53:28 +02:00
|
|
|
};
|
|
|
|
}
|