libmysqlconnectorcpp: 1.1.9 → 8.0.19
This has been seriously outdated: * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-1-1-10.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-1-1-11.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-1-1-12.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-1-1-13.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-2-0-1.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-2-0-2.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-2-0-3.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-2-0-4.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-5.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-6.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-7.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-8-through-10.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-11.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-12.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-13.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-14.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-15.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-16.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-17.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-18.html * https://dev.mysql.com/doc/relnotes/connector-cpp/en/news-8-0-19.html Expression changes: * Format with nixpkgs-fmt. * Move cmake to nativeBuildInputs. * Use OpenSSL from the system as using the bundled version is now optional. * Use MysQL 8.0 since this is supposed to be used with that version. * Explicitly enable the now legacy JDBC library used by mysql-workbench. * Remove unnecessary MYSQL_LIB_DIR flag. MySQL will be found automatically. * We just need the build script know it is not a static library.
This commit is contained in:
parent
eacf018ea7
commit
23d69911f3
2 changed files with 27 additions and 10 deletions
|
@ -1,20 +1,39 @@
|
|||
{ stdenv, fetchurl, cmake, boost, mysql }:
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, cmake
|
||||
, boost
|
||||
, openssl
|
||||
, mysql80
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libmysqlconnectorcpp";
|
||||
version = "1.1.9";
|
||||
version = "8.0.19";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz";
|
||||
sha256 = "1r6j17sy5816a2ld759iis2k6igc2w9p70y4nw9w3rd4d5x88c9y";
|
||||
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
||||
sha256 = "fDvXTOZKkwDn1IG3aziK2VAXpSSAxpi3VVea7GLUoh4=";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake boost mysql ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ];
|
||||
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/;
|
||||
homepage = "https://dev.mysql.com/downloads/connector/cpp/";
|
||||
description = "C++ library for connecting to mysql servers.";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
|
|
|
@ -12767,9 +12767,7 @@ in
|
|||
|
||||
libmysofa = callPackage ../development/libraries/audio/libmysofa { };
|
||||
|
||||
libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp {
|
||||
mysql = mysql57;
|
||||
};
|
||||
libmysqlconnectorcpp = callPackage ../development/libraries/libmysqlconnectorcpp { };
|
||||
|
||||
libnatpmp = callPackage ../development/libraries/libnatpmp { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue