nixpkgs/pkgs/servers/http/tomcat/tomcat-native.nix
2021-06-16 22:02:06 -04:00

30 lines
961 B
Nix

{ lib, stdenv, fetchurl, apr, jdk, openssl }:
stdenv.mkDerivation rec {
pname = "tomcat-native";
version = "1.2.30";
src = fetchurl {
url = "mirror://apache/tomcat/tomcat-connectors/native/${version}/source/${pname}-${version}-src.tar.gz";
sha512 = "51a8c55214de166cace193c3330abe77cabea56c2d05efc8c3408bc06369c328899376c94c572725ebe2887f2faf99fea05d1819fa84c712d57fd309d0476953";
};
sourceRoot = "${pname}-${version}-src/native";
buildInputs = [ apr jdk openssl ];
configureFlags = [
"--with-apr=${apr.dev}"
"--with-java-home=${jdk}"
"--with-ssl=${openssl.dev}"
];
meta = with lib; {
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 ];
};
}