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