1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, pcre2, expat, sqlite, openssl, unixODBC, libmysqlclient }:
3 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
11 sha256 = "sha256-ryBQjzg1DyYd/LBZzjHxq8m/7ZXRSKNNGRkIII0eHK0=";
12 rev = "poco-${version}-release";
15 nativeBuildInputs = [ cmake pkg-config ];
17 buildInputs = [ unixODBC libmysqlclient ];
18 propagatedBuildInputs = [ zlib pcre2 expat sqlite openssl ];
20 outputs = [ "out" "dev" ];
22 MYSQL_DIR = libmysqlclient;
23 MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
30 grep -rlF INTERFACE_INCLUDE_DIRECTORIES "$dev/lib/cmake/Poco" | while read -r f; do
31 substituteInPlace "$f" \
32 --replace "$"'{_IMPORT_PREFIX}/include' ""
37 homepage = "https://pocoproject.org/";
38 description = "Cross-platform C++ libraries with a network/internet focus";
39 license = licenses.boost;
40 maintainers = with maintainers; [ orivej tomodachi94 ];
41 platforms = platforms.unix;