elasticmq-server-bin: init at 0.14.6

This commit is contained in:
Peter Romfeld 2019-05-20 12:05:06 +08:00 committed by Lassulus
parent d2d8b5e59d
commit d8aee48e77
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ stdenv, fetchurl, jdk, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "elasticmq-server";
version = "0.14.6";
name = "${pname}-${version}";
src = fetchurl {
url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${name}.jar";
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"
'';
meta = with stdenv.lib; {
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 ];
};
}

View File

@ -14162,6 +14162,8 @@ in
elasticmq = callPackage ../servers/elasticmq { };
elasticmq-server-bin = callPackage ../servers/elasticmq-server-bin { };
eventstore = callPackage ../servers/nosql/eventstore {
Nuget = dotnetPackages.Nuget;
};