diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-09 15:26:07 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-09 15:26:07 -0400 |
commit | b00c839f4baf594778ac89ff7f7c17587536a85c (patch) | |
tree | 3048c1da868ad25c8cff438fe2d7c93a1e3d38dd /pkgs/servers/elasticmq | |
parent | a0cb7e4a61ee7ddfd3a5e49d9d9f40e35c1a4e19 (diff) | |
download | nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar.gz nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar.bz2 nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar.lz nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar.xz nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.tar.zst nixpkgs-b00c839f4baf594778ac89ff7f7c17587536a85c.zip |
Add ElasticMQ, a message queue service
Diffstat (limited to 'pkgs/servers/elasticmq')
-rw-r--r-- | pkgs/servers/elasticmq/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/servers/elasticmq/default.nix b/pkgs/servers/elasticmq/default.nix new file mode 100644 index 00000000000..3d0324775f8 --- /dev/null +++ b/pkgs/servers/elasticmq/default.nix @@ -0,0 +1,39 @@ +{ 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:-.}' + + wrapProgram $out/bin/elasticmq --prefix PATH : "${which}/bin:${jre}/bin" + ''; + + meta = { + homepage = https://github.com/adamw/elasticmq; + 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. + ''; + license = "APLv2"; + }; +} |