2016-09-08 08:47:04 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2016-09-07 15:47:01 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2018-07-20 19:54:05 +00:00
|
|
|
common = { versionMajor, versionMinor, sha256 }: stdenv.mkDerivation (rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "apache-tomcat";
|
2016-09-07 15:47:01 +00:00
|
|
|
version = "${versionMajor}.${versionMinor}";
|
2016-09-23 00:16:26 +00:00
|
|
|
|
2016-09-07 15:47:01 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${pname}-${version}.tar.gz";
|
2016-09-07 15:47:01 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
2016-09-23 00:16:26 +00:00
|
|
|
|
2016-09-07 15:58:08 +00:00
|
|
|
outputs = [ "out" "webapps" ];
|
2016-09-07 15:47:01 +00:00
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
|
|
|
mv * $out
|
2016-09-07 15:58:08 +00:00
|
|
|
mkdir -p $webapps/webapps
|
|
|
|
mv $out/webapps $webapps/
|
2016-09-07 15:47:01 +00:00
|
|
|
'';
|
2016-09-23 00:16:26 +00:00
|
|
|
|
2021-06-17 02:01:43 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tomcat.apache.org/";
|
2016-09-07 15:47:01 +00:00
|
|
|
description = "An implementation of the Java Servlet and JavaServer Pages technologies";
|
2021-06-17 02:01:43 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ ];
|
|
|
|
license = [ licenses.asl20 ];
|
2016-09-07 15:47:01 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
2018-01-08 17:14:20 +00:00
|
|
|
tomcat9 = common {
|
2016-09-07 16:20:54 +00:00
|
|
|
versionMajor = "9";
|
2022-11-05 16:22:30 +00:00
|
|
|
versionMinor = "0.68";
|
|
|
|
sha256 = "sha256-rxsv8zEIIbTel4CqIuncS5pellGwgHamKRa0KgzsOF0=";
|
2016-09-07 16:20:54 +00:00
|
|
|
};
|
2021-06-17 02:04:58 +00:00
|
|
|
|
|
|
|
tomcat10 = common {
|
|
|
|
versionMajor = "10";
|
2022-11-05 16:22:30 +00:00
|
|
|
versionMinor = "0.27";
|
|
|
|
sha256 = "sha256-N2atmOdhVrGx88eXOc9Wziq8kn7IWzTeFyFpir/5HLc=";
|
2021-06-17 02:04:58 +00:00
|
|
|
};
|
2016-09-07 15:47:01 +00:00
|
|
|
}
|