diff options
author | Karn Kallio <kkallio@skami.org> | 2014-12-31 20:54:26 -0430 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-09-19 09:58:15 +0200 |
commit | 07c6d61af0b552721564d1d1ccaf9bc1c506797c (patch) | |
tree | efa979c9fea631cb5bc67184a96d31cbedba5570 /pkgs/development/libraries/libmysqlconnectorcpp | |
parent | 930c682c535ef4ab2d1c85755668188de590c815 (diff) |
Add MySQL Connector C++, a mysql server client library.
Diffstat (limited to 'pkgs/development/libraries/libmysqlconnectorcpp')
-rw-r--r-- | pkgs/development/libraries/libmysqlconnectorcpp/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libmysqlconnectorcpp/default.nix b/pkgs/development/libraries/libmysqlconnectorcpp/default.nix new file mode 100644 index 0000000000000..3905ba1b27169 --- /dev/null +++ b/pkgs/development/libraries/libmysqlconnectorcpp/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, cmake, boost, mysql }: + +stdenv.mkDerivation rec { + name = "libmysqlconnectorcpp-${version}"; + version = "1.1.7"; + + src = fetchurl { + url = "http://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz"; + sha256 = "0qy7kxz8h1zswr50ysyl2cc9gy0ip2j7ikl714m7lq3gsay3ydav"; + }; + + buildInputs = [ cmake boost mysql ]; + + cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ]; + + meta = { + homepage = http://dev.mysql.com/downloads/connector/cpp/; + description = "C++ library for connecting to mysql servers."; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.unix; + }; +} |