lispPackages.cl-mysql: fix build

For [ZHF](https://github.com/NixOS/nixpkgs/issues/68361)
This commit is contained in:
Joachim Fasting 2019-10-05 22:57:11 +02:00
parent eb9a358ebc
commit b8193bd0b0
No known key found for this signature in database
GPG Key ID: 5C204DF675C90294

View File

@ -90,7 +90,14 @@ $out/lib/common-lisp/query-fs"
};
};
cffi = addNativeLibs [pkgs.libffi];
cl-mysql = addNativeLibs [pkgs.libmysqlclient];
cl-mysql = x: {
propagatedBuildInputs = [pkgs.libmysqlclient];
overrides = y: (x.overrides y) // {
prePatch = ((x.overrides y).prePatch or "") + ''
sed -i 's,libmysqlclient_r,${pkgs.libmysqlclient}/lib/mysql/libmysqlclient_r,' system.lisp
'';
};
};
cl-ppcre-template = x: {
overrides = y: (x.overrides y) // {
postPatch = ''