3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libmysqlconnectorcpp/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

23 lines
639 B
Nix

{ stdenv, fetchurl, cmake, boost, mysql }:
stdenv.mkDerivation rec {
pname = "libmysqlconnectorcpp";
version = "1.1.9";
src = fetchurl {
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz";
sha256 = "1r6j17sy5816a2ld759iis2k6igc2w9p70y4nw9w3rd4d5x88c9y";
};
buildInputs = [ cmake boost mysql ];
cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ];
meta = {
homepage = https://dev.mysql.com/downloads/connector/cpp/;
description = "C++ library for connecting to mysql servers.";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
};
}