Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
gitUpdater,
|
|
}:
|
|
|
|
let
|
|
common =
|
|
{ version, hash }:
|
|
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
|
|
];
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
jetty_11 = common {
|
|
version = "11.0.26";
|
|
hash = "sha256-uJgh/+/uGjchTgtoF38f7jIvbdrwdToAsqqVOlYtMIM=";
|
|
};
|
|
|
|
jetty_12 = common {
|
|
version = "12.1.1";
|
|
hash = "sha256-VHmPhVEqq4eoOwo9O7sbdv6bJB9dCFkN+64jTlnFarM=";
|
|
};
|
|
}
|