2014-07-28 10:37:00 +02:00
|
|
|
{ fetchurl, stdenv, ant, jdk, jre, python, makeWrapper }:
|
2014-07-26 13:32:55 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2014-07-26 13:32:55 +02:00
|
|
|
name = "rabbitmq-java-client-3.3.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.rabbitmq.com/releases/rabbitmq-java-client/v3.3.4/rabbitmq-java-client-3.3.4.tar.gz";
|
2014-07-26 13:32:55 +02:00
|
|
|
sha256 = "03kspkgzzjsbq6f8yl2zj5m30qwgxv3l58hrbf6gcgxb5rpfk6sh";
|
|
|
|
};
|
|
|
|
|
2014-07-28 10:37:00 +02:00
|
|
|
buildInputs = [ ant jdk python makeWrapper ];
|
2014-07-26 13:32:55 +02:00
|
|
|
|
|
|
|
buildPhase = "ant dist";
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-28 10:37:00 +02:00
|
|
|
mkdir -p $out/bin $out/share/java
|
|
|
|
cp build/lib/*.jar lib/*.jar $out/share/java
|
2014-07-26 13:32:55 +02:00
|
|
|
|
|
|
|
# There is a script in the source archive, but ours is cleaner
|
2014-07-28 10:37:00 +02:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/PerfTest \
|
|
|
|
--add-flags "-Djava.awt.headless=true -cp $out/share/java/\* com.rabbitmq.examples.PerfTest"
|
2014-07-26 13:32:55 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2015-05-27 21:56:04 +02:00
|
|
|
license = with licenses; [ mpl11 gpl2 ];
|
2014-07-26 13:32:55 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|