2016-09-08 10:47:04 +02:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2016-09-07 17:47:01 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-07-20 21:54:05 +02:00
|
|
|
common = { versionMajor, versionMinor, sha256 }: stdenv.mkDerivation (rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "apache-tomcat";
|
2016-09-07 17:47:01 +02:00
|
|
|
version = "${versionMajor}.${versionMinor}";
|
2016-09-23 02:16:26 +02:00
|
|
|
|
2016-09-07 17:47:01 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${pname}-${version}.tar.gz";
|
2016-09-07 17:47:01 +02:00
|
|
|
inherit sha256;
|
|
|
|
};
|
2016-09-23 02:16:26 +02:00
|
|
|
|
2016-09-07 17:58:08 +02:00
|
|
|
outputs = [ "out" "webapps" ];
|
2016-09-07 17:47:01 +02:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
|
|
|
mv * $out
|
2016-09-07 17:58:08 +02:00
|
|
|
mkdir -p $webapps/webapps
|
|
|
|
mv $out/webapps $webapps/
|
2016-09-07 17:47:01 +02:00
|
|
|
'';
|
2016-09-23 02:16:26 +02:00
|
|
|
|
2016-09-07 17:47:01 +02:00
|
|
|
meta = {
|
2016-09-08 10:47:04 +02:00
|
|
|
homepage = https://tomcat.apache.org/;
|
2016-09-07 17:47:01 +02:00
|
|
|
description = "An implementation of the Java Servlet and JavaServer Pages technologies";
|
2016-09-08 10:47:04 +02:00
|
|
|
platforms = with lib.platforms; all;
|
|
|
|
maintainers = with lib.maintainers; [ danbst ];
|
|
|
|
license = [ lib.licenses.asl20 ];
|
2016-09-07 17:47:01 +02:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
|
|
|
tomcat7 = common {
|
|
|
|
versionMajor = "7";
|
2020-03-11 12:42:22 +01:00
|
|
|
versionMinor = "0.100";
|
|
|
|
sha256 = "0wjjnvxjz0xbnsfgyp0xc7nlij4z093v54hg59vww2nmkz5mg01v";
|
2016-09-07 17:47:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
tomcat8 = common {
|
|
|
|
versionMajor = "8";
|
2020-03-11 12:48:13 +01:00
|
|
|
versionMinor = "5.51";
|
|
|
|
sha256 = "1zmg0hi4nw4y5sknd0jgq9lb3bncjjscay5fdiiq3qh5cs0wsvl3";
|
2016-09-07 18:20:54 +02:00
|
|
|
};
|
2016-09-23 02:16:26 +02:00
|
|
|
|
2018-01-08 18:14:20 +01:00
|
|
|
tomcat9 = common {
|
2016-09-07 18:20:54 +02:00
|
|
|
versionMajor = "9";
|
2020-03-11 12:50:05 +01:00
|
|
|
versionMinor = "0.31";
|
|
|
|
sha256 = "0hybcy280qhhp9if58xw0rmyyqz1m1bzby7qnwz3y2wc1y4is48v";
|
2016-09-07 18:20:54 +02:00
|
|
|
};
|
2016-09-07 17:47:01 +02:00
|
|
|
}
|