mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
23d69911f3
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.
42 lines
825 B
Nix
42 lines
825 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, boost
|
|
, openssl
|
|
, mysql80
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmysqlconnectorcpp";
|
|
version = "8.0.19";
|
|
|
|
src = fetchurl {
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
|
sha256 = "fDvXTOZKkwDn1IG3aziK2VAXpSSAxpi3VVea7GLUoh4=";
|
|
};
|
|
|
|
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/";
|
|
description = "C++ library for connecting to mysql servers.";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|