f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ version, hash }:
|
|
|
|
{ lib, stdenvNoCC, fetchurl, gitUpdater }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "jetty";
|
|
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://maven/org/eclipse/jetty/jetty-home/${version}/jetty-home-${version}.tar.gz";
|
|
inherit hash;
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
mv etc lib modules start.jar $out
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://github.com/jetty/jetty.project.git";
|
|
allowedVersions = "^${lib.versions.major version}\\.";
|
|
ignoredVersions = "(alpha|beta).*";
|
|
rev-prefix = "jetty-";
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/jetty/jetty.project/releases/tag/jetty-${version}";
|
|
description = "Web server and javax.servlet container";
|
|
homepage = "https://jetty.org/";
|
|
platforms = platforms.all;
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = with licenses; [ asl20 epl10 ];
|
|
maintainers = with maintainers; [ emmanuelrosa anthonyroussel ];
|
|
};
|
|
}
|