mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
593e11fd94
According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
31 lines
1007 B
Nix
31 lines
1007 B
Nix
{ fetchurl, stdenv, ant, jdk, jre, python, makeWrapper }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rabbitmq-java-client-3.3.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.rabbitmq.com/releases/rabbitmq-java-client/v3.3.4/rabbitmq-java-client-3.3.4.tar.gz";
|
|
sha256 = "03kspkgzzjsbq6f8yl2zj5m30qwgxv3l58hrbf6gcgxb5rpfk6sh";
|
|
};
|
|
|
|
buildInputs = [ ant jdk python makeWrapper ];
|
|
|
|
buildPhase = "ant dist";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/java
|
|
cp build/lib/*.jar lib/*.jar $out/share/java
|
|
|
|
# There is a script in the source archive, but ours is cleaner
|
|
makeWrapper ${jre}/bin/java $out/bin/PerfTest \
|
|
--add-flags "-Djava.awt.headless=true -cp $out/share/java/\* com.rabbitmq.examples.PerfTest"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "RabbitMQ Java client library which allows Java code to interface to AMQP servers";
|
|
homepage = https://www.rabbitmq.com/java-client.html;
|
|
license = with licenses; [ mpl11 gpl2 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|