From b8193bd0b02675d9aa3da48e7f4ac536b145e2ee Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Sat, 5 Oct 2019 22:57:11 +0200 Subject: [PATCH] lispPackages.cl-mysql: fix build For [ZHF](https://github.com/NixOS/nixpkgs/issues/68361) --- .../lisp-modules/quicklisp-to-nix-overrides.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix index 2d643384ad1d..5cdeef36840c 100644 --- a/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix +++ b/pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix @@ -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 = ''