3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libmysqlconnectorcpp/default.nix
R. RyanTM ea517b2af5
libmysqlconnectorcpp: 8.0.27 -> 8.0.28
* libmysqlconnectorcpp: 8.0.27 -> 8.0.28 (#159648)

* libmysqlconnectorcpp: use SPDX3 license identifier

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-17 18:20:27 +01:00

42 lines
826 B
Nix

{ lib, stdenv
, fetchurl
, cmake
, boost
, openssl
, mysql80
}:
stdenv.mkDerivation rec {
pname = "libmysqlconnectorcpp";
version = "8.0.28";
src = fetchurl {
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
sha256 = "sha256-yyb+neBaO18e0ioZlCm2eR7OGEM+sEZeKnP89EWGQgs=";
};
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 = lib.licenses.gpl2Only;
platforms = lib.platforms.unix;
};
}