2015-01-01 02:24:26 +01:00
|
|
|
{ stdenv, fetchurl, cmake, boost, mysql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmysqlconnectorcpp-${version}";
|
2018-03-09 07:36:32 +01:00
|
|
|
version = "1.1.9";
|
2015-01-01 02:24:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz";
|
2018-03-09 07:36:32 +01:00
|
|
|
sha256 = "1r6j17sy5816a2ld759iis2k6igc2w9p70y4nw9w3rd4d5x88c9y";
|
2015-01-01 02:24:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake boost mysql ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ];
|
|
|
|
|
|
|
|
meta = {
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://dev.mysql.com/downloads/connector/cpp/;
|
2015-01-01 02:24:26 +01:00
|
|
|
description = "C++ library for connecting to mysql servers.";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|