mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #327105 from anthonyroussel/update/tomcat_2
tomcat9: 9.0.90 -> 9.0.91, tomcat10: 10.1.25 -> 10.1.26
This commit is contained in:
commit
958f5ccb29
|
@ -1,50 +1,70 @@
|
|||
{ stdenvNoCC, lib, fetchurl, nixosTests, testers, jre }:
|
||||
{
|
||||
fetchurl,
|
||||
gitUpdater,
|
||||
jre,
|
||||
lib,
|
||||
nixosTests,
|
||||
stdenvNoCC,
|
||||
testers,
|
||||
}:
|
||||
|
||||
let
|
||||
common = { version, hash }: stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "apache-tomcat";
|
||||
inherit version;
|
||||
common =
|
||||
{ version, hash }:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "apache-tomcat";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/tomcat/tomcat-${lib.versions.major version}/v${version}/bin/apache-tomcat-${version}.tar.gz";
|
||||
inherit hash;
|
||||
};
|
||||
src = fetchurl {
|
||||
url = "mirror://apache/tomcat/tomcat-${lib.versions.major version}/v${version}/bin/apache-tomcat-${version}.tar.gz";
|
||||
inherit hash;
|
||||
};
|
||||
|
||||
outputs = [ "out" "webapps" ];
|
||||
installPhase =
|
||||
''
|
||||
outputs = [
|
||||
"out"
|
||||
"webapps"
|
||||
];
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mv * $out
|
||||
mkdir -p $webapps/webapps
|
||||
mv $out/webapps $webapps/
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
inherit (nixosTests) tomcat;
|
||||
version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "JAVA_HOME=${jre} ${finalAttrs.finalPackage}/bin/version.sh";
|
||||
passthru = {
|
||||
updateScript = gitUpdater {
|
||||
url = "https://github.com/apache/tomcat.git";
|
||||
allowedVersions = "^${lib.versions.major version}\\.";
|
||||
ignoredVersions = "-M.*";
|
||||
};
|
||||
tests = {
|
||||
inherit (nixosTests) tomcat;
|
||||
version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "JAVA_HOME=${jre} ${finalAttrs.finalPackage}/bin/version.sh";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://tomcat.apache.org/";
|
||||
description = "Implementation of the Java Servlet and JavaServer Pages technologies";
|
||||
platforms = jre.meta.platforms;
|
||||
maintainers = with maintainers; [ anthonyroussel ];
|
||||
license = [ licenses.asl20 ];
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
};
|
||||
});
|
||||
meta = {
|
||||
homepage = "https://tomcat.apache.org/";
|
||||
description = "Implementation of the Java Servlet and JavaServer Pages technologies";
|
||||
platforms = jre.meta.platforms;
|
||||
maintainers = with lib.maintainers; [ anthonyroussel ];
|
||||
license = lib.licenses.asl20;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
};
|
||||
});
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
tomcat9 = common {
|
||||
version = "9.0.90";
|
||||
hash = "sha256-MYSRxL5DSU5ocrUnfEDKyFBpAddErQnTffYuiFQ/YiM=";
|
||||
version = "9.0.91";
|
||||
hash = "sha256-DFspyh06Mbu4+ratH+7Yo3Au0yXRSDlVCmd0x2yQuFY=";
|
||||
};
|
||||
|
||||
tomcat10 = common {
|
||||
version = "10.1.25";
|
||||
hash = "sha256-8SQKMrh5xEWkpEGcm23YdYG9uW+KUfewyhk1Fkux6EI=";
|
||||
version = "10.1.26";
|
||||
hash = "sha256-9z92dgE3gzszBd+xjtF0+H/qw6t49lKJoINahR18/rI=";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue