2016-09-08 08:47:04 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2016-09-07 15:47:01 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
common = { versionMajor, versionMinor, sha256 } @ args: stdenv.mkDerivation (rec {
|
|
|
|
name = "apache-tomcat-${version}";
|
|
|
|
version = "${versionMajor}.${versionMinor}";
|
2016-09-23 00:16:26 +00:00
|
|
|
|
2016-09-07 15:47:01 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${version}/bin/${name}.tar.gz";
|
|
|
|
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
|
|
|
|
2016-09-07 15:47:01 +00:00
|
|
|
meta = {
|
2016-09-08 08:47:04 +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";
|
2016-09-08 08:47:04 +00:00
|
|
|
platforms = with lib.platforms; all;
|
|
|
|
maintainers = with lib.maintainers; [ danbst ];
|
|
|
|
license = [ lib.licenses.asl20 ];
|
2016-09-07 15:47:01 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
|
|
|
tomcat7 = common {
|
|
|
|
versionMajor = "7";
|
2018-01-08 17:04:45 +00:00
|
|
|
versionMinor = "0.82";
|
|
|
|
sha256 = "0vb7c5i50ral4rr39ss95k7cxnzd7fs21zd7f97d1f3qslzwl69g";
|
2016-09-07 15:47:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
tomcat8 = common {
|
|
|
|
versionMajor = "8";
|
2018-01-08 17:07:29 +00:00
|
|
|
versionMinor = "0.47";
|
|
|
|
sha256 = "0xv4v3i08rwzfmz7rkhglq5cbjgnfava8dw0i33vsp7dk162a4g4";
|
2016-09-07 15:47:01 +00:00
|
|
|
};
|
|
|
|
|
2016-09-07 16:20:54 +00:00
|
|
|
tomcat85 = common {
|
|
|
|
versionMajor = "8";
|
2018-01-08 17:09:04 +00:00
|
|
|
versionMinor = "5.23";
|
|
|
|
sha256 = "1qnww70x75c0qf2wn8mkpz5lszggjnh78dpb4chyw2fnbm3wxain";
|
2016-09-07 16:20:54 +00:00
|
|
|
};
|
2016-09-23 00:16:26 +00:00
|
|
|
|
2018-01-08 17:14:20 +00:00
|
|
|
tomcat9 = common {
|
2016-09-07 16:20:54 +00:00
|
|
|
versionMajor = "9";
|
2018-01-08 17:14:20 +00:00
|
|
|
versionMinor = "0.2";
|
|
|
|
sha256 = "0aaykzi0b2xsdmjp60ihcjzh1m95p0a79kn5l2v7vgbkyg449638";
|
2016-09-07 16:20:54 +00:00
|
|
|
};
|
2016-09-07 15:47:01 +00:00
|
|
|
}
|