2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, apacheHttpd, jdk }:
|
2008-01-23 14:40:03 +00:00
|
|
|
|
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";
|
2008-01-23 14:40:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-01 20:58:21 +00:00
|
|
|
url = "mirror://apache/tomcat/tomcat-connectors/jk/${name}-src.tar.gz";
|
2020-03-10 00:47:07 +00:00
|
|
|
sha256 = "15wfj1mvad15j1fqw67qbpbpwrcz3rb0zdhrq6z2sax1l05kc6yb";
|
2008-01-23 14:40:03 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2017-11-02 12:54:20 +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 ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-01 20:58:21 +00:00
|
|
|
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";
|
2018-11-01 20:58:21 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2008-01-23 14:40:03 +00:00
|
|
|
}
|