tomcat: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-07-26 18:18:59 -04:00
parent f3cbfff7b9
commit fb0f3b9d90
+7
View File
@@ -15,6 +15,9 @@ let
pname = "apache-tomcat";
inherit version;
__structuredAttrs = true;
strictDeps = true;
src = fetchurl {
url = "mirror://apache/tomcat/tomcat-${lib.versions.major version}/v${version}/bin/apache-tomcat-${version}.tar.gz";
inherit hash;
@@ -26,10 +29,14 @@ let
];
installPhase = ''
runHook preInstall
mkdir $out
mv * $out
mkdir -p $webapps/webapps
mv $out/webapps $webapps/
runHook postInstall
'';
passthru = {