2020-09-18 19:55:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysqlclient }:
|
2017-03-27 01:05:25 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "poco";
|
2017-03-27 01:05:25 +00:00
|
|
|
|
2022-01-25 07:54:29 +00:00
|
|
|
version = "1.11.1";
|
2017-03-27 01:05:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://pocoproject.org/releases/${pname}-${version}/${pname}-${version}-all.tar.gz";
|
2022-01-25 07:54:29 +00:00
|
|
|
sha256 = "sha256-MczOYCAEcnAAO/tbDafirUMohMI9PNUJyG9HzzpeXSo=";
|
2017-03-27 01:05:25 +00:00
|
|
|
};
|
|
|
|
|
2020-09-18 19:55:44 +00:00
|
|
|
patches = [
|
2022-01-25 07:54:29 +00:00
|
|
|
# Use GNUInstallDirs (https://github.com/pocoproject/poco/pull/3503)
|
2020-09-18 19:55:44 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "use-gnuinstalldirs.patch";
|
2022-01-25 07:54:29 +00:00
|
|
|
url = "https://github.com/pocoproject/poco/commit/16a2a74f6c28c6e6baca2ba26b4964b51d8a1b74.patch";
|
|
|
|
sha256 = "sha256-mkemG8UemJEUQxae1trKakhnJFJW0AufDYFAbmnINbY=";
|
2020-09-18 19:55:44 +00:00
|
|
|
# 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 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-03-27 01:05:25 +00:00
|
|
|
|
2022-03-28 12:39:56 +00:00
|
|
|
buildInputs = [ unixODBC libmysqlclient ];
|
|
|
|
propagatedBuildInputs = [ zlib pcre expat sqlite openssl ];
|
2020-09-17 23:21:19 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2017-03-27 01:05:25 +00:00
|
|
|
|
2019-09-22 07:38:09 +00:00
|
|
|
MYSQL_DIR = libmysqlclient;
|
2018-05-04 19:11:45 +00:00
|
|
|
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
|
|
|
|
|
2017-03-27 01:05:25 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DPOCO_UNBUNDLED=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pocoproject.org/";
|
2017-03-27 01:05:25 +00:00
|
|
|
description = "Cross-platform C++ libraries with a network/internet focus";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-03-27 01:00:00 +00:00
|
|
|
platforms = platforms.unix;
|
2017-03-27 01:05:25 +00:00
|
|
|
};
|
|
|
|
}
|