forked from mirrors/nixpkgs
707bb2712e
- https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-23.html - https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-22.html Binary distribution now ships plug-ins and and users will have to set path to them as if they want to use LDAP since it cannot really be installed to this package (where it will likely look for plug-ins).
42 lines
822 B
Nix
42 lines
822 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, boost
|
|
, openssl
|
|
, mysql80
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmysqlconnectorcpp";
|
|
version = "8.0.23";
|
|
|
|
src = fetchurl {
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
|
sha256 = "sha256-mvBklaaggP7WLacJePHLDGbwWO3V6p7ak0WmS/jsaI8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
openssl
|
|
mysql80
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# libmysqlclient is shared library
|
|
"-DMYSQLCLIENT_STATIC_LINKING=false"
|
|
# still needed for mysql-workbench
|
|
"-DWITH_JDBC=true"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://dev.mysql.com/downloads/connector/cpp/";
|
|
description = "C++ library for connecting to mysql servers";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|