nixpkgs/pkgs/servers/http/apache-modules/tomcat-connectors/default.nix

34 lines
817 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, apacheHttpd, jdk }:
2014-11-08 18:48:47 +00:00
stdenv.mkDerivation rec {
2020-03-10 00:47:07 +00:00
name = "tomcat-connectors-1.2.48";
src = fetchurl {
url = "mirror://apache/tomcat/tomcat-connectors/jk/${name}-src.tar.gz";
2020-03-10 00:47:07 +00:00
sha256 = "15wfj1mvad15j1fqw67qbpbpwrcz3rb0zdhrq6z2sax1l05kc6yb";
};
2018-07-25 22:44:21 +01:00
configureFlags = [
"--with-apxs=${apacheHttpd.dev}/bin/apxs"
"--with-java-home=${jdk}"
];
2014-11-08 18:48:47 +00:00
setSourceRoot = ''
sourceRoot=$(echo */native)
'';
2014-11-08 18:48:47 +00:00
installPhase = ''
mkdir -p $out/modules
cp apache-2.0/mod_jk.so $out/modules
'';
buildInputs = [ apacheHttpd jdk ];
meta = with lib; {
description = "Provides web server plugins to connect web servers with Tomcat";
2020-03-10 00:47:07 +00:00
homepage = "https://tomcat.apache.org/download-connectors.cgi";
license = licenses.asl20;
platforms = platforms.unix;
};
}