activemq: prepare nix files for multiple versions

This commit is contained in:
Markus Hauck 2015-10-21 13:15:57 +02:00
parent 70d7cfdb8c
commit c2c6b7fe3b
3 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,6 @@
import ./recent.nix
rec {
version = "5.8.0";
sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk";
mkUrl = name: "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz";
}

View File

@ -1,12 +1,13 @@
{ 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}";
version = "5.8.0";
src = fetchurl {
url = "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz";
sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk";
url = mkUrl name;
inherit sha256;
};
phases = [ "unpackPhase" "installPhase" ];

View File

@ -5981,7 +5981,7 @@ let
acl = callPackage ../development/libraries/acl { };
activemq = callPackage ../development/libraries/apache-activemq { };
activemq = callPackage ../development/libraries/apache-activemq/5.8.nix { };
adns = callPackage ../development/libraries/adns { };