luaPackages.luadbi-mysql: fix overrides => fix build

we previously dropped the generated config, thus breaking the build
This commit is contained in:
teto sse 2024-03-30 13:26:11 +01:00
parent b58c708841
commit 4363f16d8f

View File

@ -321,10 +321,13 @@ with prev;
}); });
luadbi-mysql = prev.luadbi-mysql.overrideAttrs (oa: { luadbi-mysql = prev.luadbi-mysql.overrideAttrs (oa: {
luarocksConfig.variables = {
# Can't just be /include and /lib, unfortunately needs the trailing 'mysql' luarocksConfig = lib.recursiveUpdate oa.luarocksConfig {
MYSQL_INCDIR = "${libmysqlclient.dev}/include/mysql"; variables = {
MYSQL_LIBDIR = "${libmysqlclient}/lib/mysql"; # Can't just be /include and /lib, unfortunately needs the trailing 'mysql'
MYSQL_INCDIR = "${libmysqlclient.dev}/include/mysql";
MYSQL_LIBDIR = "${libmysqlclient}/lib/mysql";
};
}; };
buildInputs = oa.buildInputs ++ [ buildInputs = oa.buildInputs ++ [
mariadb.client mariadb.client