1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "apache-activemq";
5 version = "5.18.1";
6
7 src = fetchurl {
8 sha256 = "sha256-/t173pr1urrrByv3rrIGXZAhwmFj3tY5yHoy1nN5VHI=";
9 url = "mirror://apache/activemq/${version}/${pname}-${version}-bin.tar.gz";
10 };
11
12 installPhase = ''
13 mkdir -p $out
14 mv * $out/
15 for j in `find $out/lib -name "*.jar"`; do
16 cp="''${cp:+"$cp:"}$j";
17 done
18 echo "CLASSPATH=$cp" > $out/lib/classpath.env
19 '';
20
21 meta = {
22 homepage = "https://activemq.apache.org/";
23 description = "Messaging and Integration Patterns server written in Java";
24 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
25 license = lib.licenses.asl20;
26 platforms = lib.platforms.unix;
27 };
28
29}