depot/third_party/nixpkgs/pkgs/development/libraries/poco/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

43 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, zlib, pcre2, expat, sqlite, openssl, unixODBC, libmysqlclient }:
stdenv.mkDerivation rec {
pname = "poco";
version = "1.13.3";
src = fetchFromGitHub {
owner = "pocoproject";
repo = "poco";
sha256 = "sha256-ryBQjzg1DyYd/LBZzjHxq8m/7ZXRSKNNGRkIII0eHK0=";
rev = "poco-${version}-release";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ unixODBC libmysqlclient ];
propagatedBuildInputs = [ zlib pcre2 expat sqlite openssl ];
outputs = [ "out" "dev" ];
MYSQL_DIR = libmysqlclient;
MYSQL_INCLUDE_DIR = "${MYSQL_DIR}/include/mysql";
configureFlags = [
"--unbundled"
];
postFixup = ''
grep -rlF INTERFACE_INCLUDE_DIRECTORIES "$dev/lib/cmake/Poco" | while read -r f; do
substituteInPlace "$f" \
--replace "$"'{_IMPORT_PREFIX}/include' ""
done
'';
meta = with lib; {
homepage = "https://pocoproject.org/";
description = "Cross-platform C++ libraries with a network/internet focus";
license = licenses.boost;
maintainers = with maintainers; [ orivej tomodachi94 ];
platforms = platforms.unix;
};
}