nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "jetty";
5 version = "11.0.14";
6 src = fetchurl {
7 url = "mirror://maven/org/eclipse/jetty/jetty-home/${version}/jetty-home-${version}.tar.gz";
8 sha256 = "sha256-lmS9B5dXJAc9j/RVs2sqMRaj1C5CN2trTszUXfPfHI4=";
9 };
10
11 dontBuild = true;
12
13 installPhase = ''
14 mkdir -p $out
15 mv etc lib modules start.jar $out
16 '';
17
18 meta = with lib; {
19 description = "A Web server and javax.servlet container";
20 homepage = "https://www.eclipse.org/jetty/";
21 platforms = platforms.all;
22 sourceProvenance = with sourceTypes; [ binaryBytecode ];
23 license = with licenses; [ asl20 epl10 ];
24 maintainers = with maintainers; [ emmanuelrosa ];
25 };
26}