2012-07-09 19:26:07 +00:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper, which }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "elasticmq-0.5";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/downloads/adamw/elasticmq/${name}.tar.gz";
|
|
|
|
sha256 = "1zpv3vzairprh4x9fia82qqr14kf5hpxq1r90mn4ww7ighbv9pf1";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -prd lib conf $out/
|
|
|
|
|
|
|
|
cp bin/run.sh $out/bin/elasticmq
|
|
|
|
substituteInPlace $out/bin/elasticmq --replace '-DBASEDIR=$BASEDIR' '-DBASEDIR=''${ELASTICMQ_DATA_PREFIX:-.}'
|
|
|
|
|
2016-08-22 22:06:51 +00:00
|
|
|
wrapProgram $out/bin/elasticmq --prefix PATH : "${stdenv.lib.makeBinPath [ which jre ]}"
|
2012-07-09 19:26:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/adamw/elasticmq";
|
2012-07-09 19:26:07 +00:00
|
|
|
description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
ElasticMQ is a message queueing system with Java, Scala and
|
|
|
|
Amazon SQS-compatible interfaces. You should set the
|
|
|
|
environment ELASTICMQ_DATA_PREFIX to a writable directory
|
|
|
|
where ElasticMQ will store its data and log files. It also
|
|
|
|
looks for its configuration file in
|
|
|
|
$ELASTICMQ_DATA_PREFIX/conf/Default.scala. You can use the
|
|
|
|
Default.scala included in the distribution as a template.
|
|
|
|
'';
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-07-09 19:26:07 +00:00
|
|
|
};
|
|
|
|
}
|