1{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
2
3stdenv.mkDerivation rec {
4 pname = "poco";
5
6 version = "1.9.4";
7
8 src = fetchurl {
9 url = "https://pocoproject.org/releases/${pname}-${version}/${pname}-${version}-all.tar.gz";
10 sha256 = "0xzxi3r4v2076kcxhj7b1achma2lqy01spshxq8sfh0jn5bz4d7b";
11 };
12
13 nativeBuildInputs = [ cmake pkgconfig ];
14
15 buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysqlclient ];
16
17 MYSQL_DIR = libmysqlclient;
18 MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
19
20 cmakeFlags = [
21 "-DPOCO_UNBUNDLED=ON"
22 ];
23
24 enableParallelBuilding = true;
25
26 meta = with stdenv.lib; {
27 homepage = https://pocoproject.org/;
28 description = "Cross-platform C++ libraries with a network/internet focus";
29 license = licenses.boost;
30 maintainers = with maintainers; [ orivej ];
31 };
32}