1 { fetchurl, lib, stdenv, ant, jdk, jre, python2, makeWrapper }:
3 stdenv.mkDerivation rec {
4 pname = "rabbitmq-java-client";
8 url = "https://www.rabbitmq.com/releases/rabbitmq-java-client/v${version}/rabbitmq-java-client-${version}.tar.gz";
9 sha256 = "03kspkgzzjsbq6f8yl2zj5m30qwgxv3l58hrbf6gcgxb5rpfk6sh";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ ant jdk python2 ];
15 buildPhase = "ant dist";
18 mkdir -p $out/bin $out/share/java
19 cp build/lib/*.jar lib/*.jar $out/share/java
21 # There is a script in the source archive, but ours is cleaner
22 makeWrapper ${jre}/bin/java $out/bin/PerfTest \
23 --add-flags "-Djava.awt.headless=true -cp $out/share/java/\* com.rabbitmq.examples.PerfTest"
27 description = "RabbitMQ Java client library which allows Java code to interface to AMQP servers";
28 homepage = "https://www.rabbitmq.com/java-client.html";
29 sourceProvenance = with sourceTypes; [
31 binaryBytecode # source bundles dependencies as jars
33 license = with licenses; [ mpl11 gpl2 ];
34 platforms = platforms.linux;