mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
mariadb: fix connector-c library install_name on darwin
This commit is contained in:
parent
32925f082b
commit
d71c8da8da
|
@ -180,6 +180,11 @@ connector-c = stdenv.mkDerivation rec {
|
|||
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
|
||||
];
|
||||
|
||||
# The cmake setup-hook uses $out/lib by default, this is not the case here.
|
||||
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb")
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
propagatedBuildInputs = [ openssl zlib ];
|
||||
buildInputs = [ libiconv ];
|
||||
|
|
Loading…
Reference in a new issue