nixpkgs/pkgs/servers/http/tomcat/tomcat-native.nix

30 lines
936 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, apr, jdk, openssl }:
2020-03-17 00:15:47 +00:00
stdenv.mkDerivation rec {
pname = "tomcat-native";
2020-12-28 15:20:47 +00:00
version = "1.2.26";
2020-03-17 00:15:47 +00:00
src = fetchurl {
url = "mirror://apache/tomcat/tomcat-connectors/native/${version}/source/${pname}-${version}-src.tar.gz";
2020-12-28 15:20:47 +00:00
sha512 = "319lrb0b5vvm2m46rdz2zbicisijvim6948ghz0mypck6f419yjr68j8rpmxpckscaj0ghmbq3p28jpxbjpig84ygy0m63cvgpxknfa";
2020-03-17 00:15:47 +00:00
};
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; {
2020-03-17 00:15:47 +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 ];
};
}