2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, jdk, jre, makeWrapper }:
|
2019-05-20 04:05:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elasticmq-server";
|
|
|
|
version = "0.14.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar";
|
2019-05-20 04:05:06 +00:00
|
|
|
sha256 = "1cp2pmkc6gx7gr6109jlcphlky5rr6s1wj528r6hyhzdc01sjhhz";
|
|
|
|
};
|
|
|
|
|
|
|
|
# don't do anything?
|
|
|
|
unpackPhase = "${jdk}/bin/jar xf $src favicon.png";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/elasticmq-server
|
|
|
|
|
|
|
|
cp $src $out/share/elasticmq-server/elasticmq-server.jar
|
|
|
|
|
|
|
|
# TODO: how to add extraArgs? current workaround is to use JAVA_TOOL_OPTIONS environment to specify properties
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/elasticmq-server \
|
|
|
|
--add-flags "-jar $out/share/elasticmq-server/elasticmq-server.jar"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-20 04:05:06 +00:00
|
|
|
homepage = "https://github.com/softwaremill/elasticmq";
|
|
|
|
description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ peterromfeldhk ];
|
|
|
|
};
|
|
|
|
}
|