2021-09-18 10:52:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
patches = [
|
|
|
|
# Use GNUInstallDirs (https://github.com/pocoproject/poco/pull/3105)
|
|
|
|
(fetchpatch {
|
|
|
|
name = "use-gnuinstalldirs.patch";
|
|
|
|
url = "https://github.com/pocoproject/poco/commit/9e8f84dff4575f01be02e0b07364efd1561ce66c.patch";
|
|
|
|
sha256 = "1bj4i93gxr7pwx33bfyhg20ad4ak1rbxkrlpsgzk7rm6mh0mld26";
|
|
|
|
# Files not included in release tarball
|
|
|
|
excludes = [
|
|
|
|
"Encodings/Compiler/CMakeLists.txt"
|
|
|
|
"PocoDoc/CMakeLists.txt"
|
|
|
|
"NetSSL_Win/CMakeLists.txt"
|
|
|
|
"PDF/CMakeLists.txt"
|
|
|
|
"SevenZip/CMakeLists.txt"
|
|
|
|
"ApacheConnector/CMakeLists.txt"
|
|
|
|
"CppParser/CMakeLists.txt"
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
buildInputs = [ openssl unixODBC libmysqlclient ];
|
|
|
|
propagatedBuildInputs = [ zlib pcre expat sqlite ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
MYSQL_DIR = libmysqlclient;
|
|
|
|
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPOCO_UNBUNDLED=ON"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://pocoproject.org/";
|
|
|
|
description = "Cross-platform C++ libraries with a network/internet focus";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|