RabbitMQ Java client library: package

This commit is contained in:
Evgeny Egorochkin 2014-07-26 14:32:55 +03:00
parent 8024d6ee3c
commit a7207cf389
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ fetchurl, stdenv, ant, jdk, python }:
stdenv.mkDerivation rec {
name = "rabbitmq-java-client-3.3.4";
src = fetchurl {
url = "http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.3.4/rabbitmq-java-client-3.3.4.tar.gz";
sha256 = "03kspkgzzjsbq6f8yl2zj5m30qwgxv3l58hrbf6gcgxb5rpfk6sh";
};
buildInputs = [ ant jdk python ];
buildPhase = "ant dist";
installPhase = ''
mkdir -p $out/bin $out/lib
cp build/lib/*.jar lib/*.jar $out/lib/
# There is a script in the source archive, but ours is cleaner
cat > "$out/bin/PerfTest" <<EOF
#!${stdenv.shell}
java_exec_args="-Djava.awt.headless=true"
exec ${jdk.jre}/bin/java \$java_exec_args -classpath "$out/lib/*" com.rabbitmq.examples.PerfTest "\$@"
EOF
chmod a+x $out/bin/PerfTest
'';
meta = with stdenv.lib; {
description = "RabbitMQ Java client library which allows Java code to interface to AMQP servers";
homepage = http://www.rabbitmq.com/java-client.html;
license = [ "MPLv1.1" "GPLv2" ];
platforms = platforms.linux;
};
}

View File

@ -6005,6 +6005,8 @@ let
rabbitmq-c = callPackage ../development/libraries/rabbitmq-c {};
rabbitmq-java-client = callPackage ../development/libraries/rabbitmq-java-client {};
raul = callPackage ../development/libraries/audio/raul { };
readline = readline6; # 6.2 works, 6.3 breaks python, parted