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 {
|
2016-09-07 17:47:01 +02:00
|
|
|
name = "apache-tomcat-${version}";
|
|
|
|
version = "${versionMajor}.${versionMinor}";
|
2016-09-23 02:16:26 +02:00
|
|
|
|
2016-09-07 17:47:01 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${name}.tar.gz";
|
|
|
|
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";
|
2018-12-05 11:32:20 +01:00
|
|
|
versionMinor = "0.92";
|
|
|
|
sha256 = "0j015mf15drl92kvgyi1ppzjziw0k1rwvfnih8r20h92ylk8mznk";
|
2016-09-07 17:47:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
tomcat8 = common {
|
|
|
|
versionMajor = "8";
|
2018-12-05 11:32:20 +01:00
|
|
|
versionMinor = "0.53";
|
|
|
|
sha256 = "1ymp5n6xjqzpqjjlwql195v8r5fsmry7nfax46bafkjw8b24g80r";
|
2016-09-07 17:47:01 +02:00
|
|
|
};
|
|
|
|
|
2016-09-07 18:20:54 +02:00
|
|
|
tomcat85 = common {
|
|
|
|
versionMajor = "8";
|
2018-12-05 11:32:20 +01:00
|
|
|
versionMinor = "5.35";
|
|
|
|
sha256 = "0n6agr2wn8m5mv0asz73hy2194n9rk7mh5wsp2pz7aq0andbhh5s";
|
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";
|
2018-12-05 11:32:20 +01:00
|
|
|
versionMinor = "0.13";
|
|
|
|
sha256 = "1rsrnmkkrbzrj56jk2wh8hrr79kfkk3fz1j0abk3midn1jnbgxxq";
|
2016-09-07 18:20:54 +02:00
|
|
|
};
|
2016-09-07 17:47:01 +02:00
|
|
|
}
|