Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cmake,
|
|
boost,
|
|
openssl,
|
|
mysql80,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmysqlconnectorcpp";
|
|
version = "9.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://mysql/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
|
hash = "sha256-NqfJPUoQ0doqLmY2dVnZF0GqDwNivArpQxcc8XcfZhU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed '/^cmake_minimum_required/Is/VERSION [0-9]\.[0-9]/VERSION 3.5/' \
|
|
-i ./cdk/extra/protobuf/CMakeLists.txt \
|
|
-i ./cdk/extra/lz4/CMakeLists.txt \
|
|
-i ./cdk/extra/zstd/CMakeLists.txt
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
mysql80
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
openssl
|
|
mysql80
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
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;
|
|
};
|
|
}
|