nixpkgs/pkgs/development/libraries/poco/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.6 KiB
Nix
Raw Normal View History

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 {
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 {
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"
];
})
];
nativeBuildInputs = [ cmake pkg-config ];
2017-03-27 01:05:25 +00:00
buildInputs = [ unixODBC libmysqlclient ];
propagatedBuildInputs = [ zlib pcre expat sqlite openssl ];
outputs = [ "out" "dev" ];
2017-03-27 01:05:25 +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"
];
meta = with lib; {
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
};
}