2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "poco";
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pocoproject.org/releases/${pname}-${version}/${pname}-${version}-all.tar.gz";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "1jilzh0h6ik5lr167nax7q6nrpzxl99p11pkl202ig06pgh32nbz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysqlclient ];
|
|
|
|
|
|
|
|
MYSQL_DIR = libmysqlclient;
|
|
|
|
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPOCO_UNBUNDLED=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://pocoproject.org/";
|
|
|
|
description = "Cross-platform C++ libraries with a network/internet focus";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|