2015-10-21 14:15:57 +03:00
|
|
|
{ version, sha256, mkUrl }:
|
|
|
|
# use a function to make the source url, because the url schemes differ between 5.8.0 and greater
|
2013-02-25 14:39:19 +04:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "apache-activemq-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-21 14:15:57 +03:00
|
|
|
url = mkUrl name;
|
|
|
|
inherit sha256;
|
2013-02-25 14:39:19 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 16:56:10 +04:00
|
|
|
mkdir -p $out
|
2013-02-25 19:47:19 +04:00
|
|
|
mv * $out/
|
2013-02-25 14:39:19 +04:00
|
|
|
for j in `find $out/lib -name "*.jar"`; do
|
|
|
|
cp="''${cp:+"$cp:"}$j";
|
|
|
|
done
|
|
|
|
echo "CLASSPATH=$cp" > $out/lib/classpath.env
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://activemq.apache.org/;
|
2013-10-05 18:22:46 +04:00
|
|
|
description = "Messaging and Integration Patterns server written in Java";
|
2013-02-25 14:39:19 +04:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|