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