activemq: prepare nix files for multiple versions
This commit is contained in:
parent
70d7cfdb8c
commit
c2c6b7fe3b
6
pkgs/development/libraries/apache-activemq/5.8.nix
Normal file
6
pkgs/development/libraries/apache-activemq/5.8.nix
Normal 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";
|
||||
}
|
@ -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" ];
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user