2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, apr, jdk, openssl }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tomcat-native";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.0.7";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/tomcat/tomcat-connectors/native/${version}/source/${pname}-${version}-src.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-LFr8ftw4PkdmBkfppwca2B9Y5Rx/dlwS9+evySA7LU0=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${pname}-${version}-src/native";
|
|
|
|
|
|
|
|
buildInputs = [ apr jdk openssl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-apr=${apr.dev}"
|
|
|
|
"--with-java-home=${jdk}"
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
description = "An optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc";
|
|
|
|
homepage = "https://tomcat.apache.org/native-doc/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ aanderse ];
|
|
|
|
};
|
|
|
|
}
|