2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
common = { versionMajor, versionMinor, sha256 }: stdenv.mkDerivation (rec {
|
|
|
|
pname = "apache-tomcat";
|
|
|
|
version = "${versionMajor}.${versionMinor}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${pname}-${version}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "webapps" ];
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir $out
|
|
|
|
mv * $out
|
|
|
|
mkdir -p $webapps/webapps
|
|
|
|
mv $out/webapps $webapps/
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tomcat.apache.org/";
|
|
|
|
description = "An implementation of the Java Servlet and JavaServer Pages technologies";
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ ];
|
|
|
|
license = [ licenses.asl20 ];
|
2023-05-24 13:37:59 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
|
|
|
tomcat9 = common {
|
|
|
|
versionMajor = "9";
|
2023-05-24 13:37:59 +00:00
|
|
|
versionMinor = "0.75";
|
|
|
|
sha256 = "sha256-VWfKg789z+ns1g3hDsCZFYQ+PsdqUEBeBHCihkGZelk=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
tomcat10 = common {
|
|
|
|
versionMajor = "10";
|
2022-11-04 12:27:35 +00:00
|
|
|
versionMinor = "0.27";
|
|
|
|
sha256 = "sha256-N2atmOdhVrGx88eXOc9Wziq8kn7IWzTeFyFpir/5HLc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|