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";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "8.0.23";
|
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";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-mvBklaaggP7WLacJePHLDGbwWO3V6p7ak0WmS/jsaI8=";
|
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";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|