Skip to content

Commit

Permalink
luaPackages.luadbi: libmysql -> connector-c
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Dec 26, 2017
1 parent 37f7350 commit 085ee23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/top-level/lua-packages.nix
Expand Up @@ -8,7 +8,7 @@
{ fetchurl, fetchzip, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
, perl, gtk2, python, glib, gobjectIntrospection, libevent, zlib, autoreconfHook
, libmysql, postgresql, cyrus_sasl
, mysql, postgresql, cyrus_sasl
, fetchFromGitHub, libmpack, which
}:

Expand Down Expand Up @@ -210,7 +210,7 @@ let
};
sourceRoot = ".";

buildInputs = [ libmysql postgresql sqlite ];
buildInputs = [ mysql.connector-c postgresql sqlite ];

preConfigure = ''
substituteInPlace Makefile --replace CC=gcc CC=cc
Expand All @@ -220,7 +220,8 @@ let
'';

NIX_CFLAGS_COMPILE = [
"-I${libmysql.dev}/include/mysql"
"-I${mysql.connector-c}/include/mysql"
"-L${mysql.connector-c}/lib/mysql"
"-I${postgresql}/include/server"
];

Expand Down

0 comments on commit 085ee23

Please sign in to comment.