Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5 gitUpdater,
6}:
7
8let
9 common =
10 { version, hash }:
11 stdenvNoCC.mkDerivation rec {
12 pname = "jetty";
13
14 inherit version;
15
16 src = fetchurl {
17 url = "mirror://maven/org/eclipse/jetty/jetty-home/${version}/jetty-home-${version}.tar.gz";
18 inherit hash;
19 };
20
21 dontBuild = true;
22
23 installPhase = ''
24 mkdir -p $out
25 mv etc lib modules start.jar $out
26 '';
27
28 passthru.updateScript = gitUpdater {
29 url = "https://github.com/jetty/jetty.project.git";
30 allowedVersions = "^${lib.versions.major version}\\.";
31 ignoredVersions = "(alpha|beta).*";
32 rev-prefix = "jetty-";
33 };
34
35 meta = with lib; {
36 changelog = "https://github.com/jetty/jetty.project/releases/tag/jetty-${version}";
37 description = "Web server and javax.servlet container";
38 homepage = "https://jetty.org/";
39 platforms = platforms.all;
40 sourceProvenance = with sourceTypes; [ binaryBytecode ];
41 license = with licenses; [
42 asl20
43 epl10
44 ];
45 maintainers = with maintainers; [
46 emmanuelrosa
47 anthonyroussel
48 ];
49 };
50 };
51
52in
53{
54 jetty_11 = common {
55 version = "11.0.25";
56 hash = "sha256-KaceKN/iu0QCv9hVmoXYvN7TxK9DwhiCcbjEnqcKSzs=";
57 };
58
59 jetty_12 = common {
60 version = "12.0.23";
61 hash = "sha256-oY6IU59ir52eM4qO2arOLErN4CEUCT0iRM4I9ip+m3I=";
62 };
63}