about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/jetty/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/http/jetty/common.nix')
-rw-r--r--nixpkgs/pkgs/servers/http/jetty/common.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/http/jetty/common.nix b/nixpkgs/pkgs/servers/http/jetty/common.nix
new file mode 100644
index 000000000000..83adac4ddd0d
--- /dev/null
+++ b/nixpkgs/pkgs/servers/http/jetty/common.nix
@@ -0,0 +1,30 @@
+{ version, hash }:
+
+{ lib, stdenv, fetchurl }:
+
+stdenv.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
+  '';
+
+  meta = with lib; {
+    description = "A Web server and javax.servlet container";
+    homepage = "https://eclipse.dev/jetty/";
+    platforms = platforms.all;
+    sourceProvenance = with sourceTypes; [ binaryBytecode ];
+    license = with licenses; [ asl20 epl10 ];
+    maintainers = with maintainers; [ emmanuelrosa anthonyroussel ];
+  };
+}