1 { stdenvNoCC, lib, fetchurl, nixosTests, testers, jre }:
4 common = { version, hash }: stdenvNoCC.mkDerivation (finalAttrs: {
5 pname = "apache-tomcat";
9 url = "mirror://apache/tomcat/tomcat-${lib.versions.major version}/v${version}/bin/apache-tomcat-${version}.tar.gz";
13 outputs = [ "out" "webapps" ];
18 mkdir -p $webapps/webapps
19 mv $out/webapps $webapps/
23 inherit (nixosTests) tomcat;
24 version = testers.testVersion {
25 package = finalAttrs.finalPackage;
26 command = "JAVA_HOME=${jre} ${finalAttrs.finalPackage}/bin/version.sh";
31 homepage = "https://tomcat.apache.org/";
32 description = "An implementation of the Java Servlet and JavaServer Pages technologies";
33 platforms = jre.meta.platforms;
34 maintainers = with maintainers; [ anthonyroussel ];
35 license = [ licenses.asl20 ];
36 sourceProvenance = with sourceTypes; [ binaryBytecode ];
43 hash = "sha256-2kgvuSIAhtvzceGAqgnGQCr48EhYZzTN7dSgjEjUzgI=";
48 hash = "sha256-hCfFUJ8U5IKUCgFfP2DeIDQtPXLI3qmYKk1xEstxpu4=";