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 13:41:18 +01:00
|
|
|
pname = "libmysqlconnectorcpp";
|
2020-05-06 03:32:15 +01:00
|
|
|
version = "8.0.20";
|
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-05-06 03:32:15 +01:00
|
|
|
sha256 = "1jrrbfy6sw4pni72c1hgvchx1zzfpnamp34sjnv82mlvsp8ypsjh";
|
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;
|
|
|
|
};
|
|
|
|
}
|