2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, openssl
|
|
|
|
, mysql80
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmysqlconnectorcpp";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "8.0.30";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-WyzuvjmG/m1rDG8ptpEss6HKv5mNLExBJ0UnaN51qws=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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/";
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "C++ library for connecting to mysql servers";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|