2020-09-18 21:55:44 +02:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
2017-03-27 03:05:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "poco";
|
2017-03-27 03:05:25 +02:00
|
|
|
|
2020-06-08 09:10:06 +02:00
|
|
|
version = "1.10.1";
|
2017-03-27 03:05:25 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://pocoproject.org/releases/${pname}-${version}/${pname}-${version}-all.tar.gz";
|
2020-06-08 09:10:06 +02:00
|
|
|
sha256 = "1jilzh0h6ik5lr167nax7q6nrpzxl99p11pkl202ig06pgh32nbz";
|
2017-03-27 03:05:25 +02:00
|
|
|
};
|
|
|
|
|
2020-09-18 21:55:44 +02: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-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-03-27 03:05:25 +02:00
|
|
|
|
2020-09-18 01:21:19 +02:00
|
|
|
buildInputs = [ openssl unixODBC libmysqlclient ];
|
|
|
|
propagatedBuildInputs = [ zlib pcre expat sqlite ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2017-03-27 03:05:25 +02:00
|
|
|
|
2019-09-22 09:38:09 +02:00
|
|
|
MYSQL_DIR = libmysqlclient;
|
2018-05-04 21:11:45 +02:00
|
|
|
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
|
|
|
|
|
2017-03-27 03:05:25 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPOCO_UNBUNDLED=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pocoproject.org/";
|
2017-03-27 03:05:25 +02:00
|
|
|
description = "Cross-platform C++ libraries with a network/internet focus";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-03-27 02:00:00 +01:00
|
|
|
platforms = platforms.unix;
|
2017-03-27 03:05:25 +02:00
|
|
|
};
|
|
|
|
}
|