summary refs log tree commit diff
path: root/pkgs/development/libraries/apache-activemq/recent.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/apache-activemq/recent.nix')
-rw-r--r--pkgs/development/libraries/apache-activemq/recent.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/libraries/apache-activemq/recent.nix b/pkgs/development/libraries/apache-activemq/recent.nix
new file mode 100644
index 000000000000..a69880233433
--- /dev/null
+++ b/pkgs/development/libraries/apache-activemq/recent.nix
@@ -0,0 +1,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;
+  };
+
+}