2020-03-11 20:39:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, openssl
|
|
|
|
, mysql80
|
|
|
|
}:
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libmysqlconnectorcpp";
|
2020-07-17 17:50:30 +00:00
|
|
|
version = "8.0.21";
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-11 20:39:12 +00:00
|
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
2020-07-17 17:50:30 +00:00
|
|
|
sha256 = "08z40419aip26z6ss30g59mvnddb8dfam82l556jyj3gxs0irqbh";
|
2015-01-01 01:24:26 +00:00
|
|
|
};
|
|
|
|
|
2020-03-11 20:39:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2015-01-01 01:24:26 +00:00
|
|
|
|
2020-03-11 20:39:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
openssl
|
|
|
|
mysql80
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
# libmysqlclient is shared library
|
|
|
|
"-DMYSQLCLIENT_STATIC_LINKING=false"
|
|
|
|
# still needed for mysql-workbench
|
|
|
|
"-DWITH_JDBC=true"
|
|
|
|
];
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-03-11 20:39:12 +00:00
|
|
|
homepage = "https://dev.mysql.com/downloads/connector/cpp/";
|
2015-01-01 01:24:26 +00:00
|
|
|
description = "C++ library for connecting to mysql servers.";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|