2016-09-08 09:47:04 +01:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2016-09-07 16:47:01 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
common = { versionMajor, versionMinor, sha256 } @ args: stdenv.mkDerivation (rec {
|
|
|
|
name = "apache-tomcat-${version}";
|
|
|
|
version = "${versionMajor}.${versionMinor}";
|
2016-09-23 01:16:26 +01:00
|
|
|
|
2016-09-07 16:47:01 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${name}.tar.gz";
|
|
|
|
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 {
|
|
|
|
|
|
|
|
tomcat6 = common {
|
|
|
|
versionMajor = "6";
|
|
|
|
versionMinor = "0.45";
|
|
|
|
sha256 = "0ba8h86padpk23xmscp7sg70g0v8ji2jbwwriz59hxqy5zhd76wg";
|
|
|
|
};
|
|
|
|
|
|
|
|
tomcat7 = common {
|
|
|
|
versionMajor = "7";
|
2016-09-23 01:16:26 +01:00
|
|
|
versionMinor = "0.72";
|
|
|
|
sha256 = "1nx5pmz3bq3n20fdspqh8ljqy1nj67rwi1vsqjpkrvd996x7p73p";
|
2016-09-07 16:47:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
tomcat8 = common {
|
|
|
|
versionMajor = "8";
|
2016-09-07 17:20:54 +01:00
|
|
|
versionMinor = "0.37";
|
|
|
|
sha256 = "0f9d4yxjzwdrayj5l3jyiclnmpb5lffvmsnp54qpf6m3gm7cj5i6";
|
2016-09-07 16:47:01 +01:00
|
|
|
};
|
|
|
|
|
2016-09-07 17:20:54 +01:00
|
|
|
tomcat85 = common {
|
|
|
|
versionMajor = "8";
|
|
|
|
versionMinor = "5.5";
|
|
|
|
sha256 = "0idfxjrw5q45f531gyjnv6xjkbj9nhy2v1w4z7558z96230a0fqj";
|
|
|
|
};
|
2016-09-23 01:16:26 +01:00
|
|
|
|
2016-09-07 17:20:54 +01:00
|
|
|
tomcatUnstable = common {
|
|
|
|
versionMajor = "9";
|
|
|
|
versionMinor = "0.0.M10";
|
|
|
|
sha256 = "0p3pqwz9zjvr9w73divsyaa53mbazf0icxfs06wvgxsvkbgj5gq9";
|
|
|
|
};
|
2016-09-23 01:16:26 +01:00
|
|
|
|
2016-09-07 16:47:01 +01:00
|
|
|
}
|