1{
2 lib,
3 stdenv,
4 fetchurl,
5 apr,
6 jdk,
7 openssl,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "tomcat-native";
12 version = "2.0.9";
13
14 src = fetchurl {
15 url = "mirror://apache/tomcat/tomcat-connectors/native/${version}/source/${pname}-${version}-src.tar.gz";
16 hash = "sha256-iu0N70FNf0m2iOgmeXUT6VGC7L17b4tvAl5Se4UGXAI=";
17 };
18
19 sourceRoot = "${pname}-${version}-src/native";
20
21 buildInputs = [
22 apr
23 jdk
24 openssl
25 ];
26
27 configureFlags = [
28 "--with-apr=${apr.dev}"
29 "--with-java-home=${jdk}"
30 "--with-ssl=${openssl.dev}"
31 ];
32
33 meta = with lib; {
34 description = "Optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc";
35 homepage = "https://tomcat.apache.org/native-doc/";
36 license = licenses.asl20;
37 platforms = platforms.unix;
38 maintainers = with maintainers; [ aanderse ];
39 };
40}