summary refs log tree commit diff
path: root/pkgs/development/libraries/apache-activemq/recent.nix
blob: a69880233433a770b9e74daf674a30ee9fcc5d17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ version, sha256, mkUrl }:
# use a function to make the source url, because the url schemes differ between 5.8.0 and greater
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  name = "apache-activemq-${version}";

  src = fetchurl {
    url = mkUrl name;
    inherit sha256;
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out
    mv * $out/
    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/;
    description = "Messaging and Integration Patterns server written in Java";
    license = stdenv.lib.licenses.asl20;
  };

}