nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 908 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 apr, 6 jdk, 7 openssl, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "tomcat-native"; 12 version = "2.0.12"; 13 14 src = fetchurl { 15 url = "mirror://apache/tomcat/tomcat-connectors/native/${version}/source/${pname}-${version}-src.tar.gz"; 16 hash = "sha256-iJTQ8Vd+eDQlhacGBQt/9LVX/zhc3OoEJEBMWTv9MQQ="; 17 }; 18 19 sourceRoot = "${pname}-${version}-src/native"; 20 21 buildInputs = [ 22 apr 23 jdk 24 openssl 25 ]; 26 27 configureFlags = [ 28 "--with-apr=${apr.dev}" 29 "--with-java-home=${jdk}" 30 "--with-ssl=${openssl.dev}" 31 ]; 32 33 meta = { 34 description = "Optional component for use with Apache Tomcat that allows Tomcat to use certain native resources for performance, compatibility, etc"; 35 homepage = "https://tomcat.apache.org/native-doc/"; 36 license = lib.licenses.asl20; 37 platforms = lib.platforms.unix; 38 maintainers = with lib.maintainers; [ aanderse ]; 39 }; 40}