mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
42 lines
823 B
Nix
42 lines
823 B
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, boost
|
|
, openssl
|
|
, mysql80
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmysqlconnectorcpp";
|
|
version = "8.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
|
hash = "sha256-LuPH0NAxzlgd7u10fZVh0UAXI3NZK+1dBjCnkOYFPcE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|