mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
tomcat: add passthru.updateScript
This commit is contained in:
parent
eda65c2b43
commit
8c1f535d37
@ -1,4 +1,4 @@
|
||||
{ stdenvNoCC, lib, fetchurl, nixosTests, testers, jre }:
|
||||
{ stdenvNoCC, lib, fetchurl, nixosTests, testers, jre, gitUpdater }:
|
||||
|
||||
let
|
||||
common = { version, hash }: stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
@ -19,11 +19,18 @@ let
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user