1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

mariadb: Propagate library paths in mysql_config

This commit is contained in:
William A. Kennington III 2015-04-28 16:33:27 -07:00
parent 171275c7f9
commit 0405651521

View file

@ -90,6 +90,11 @@ stdenv.mkDerivation rec {
mv $out/lib $lib
mv $out/include $lib
# Fix the mysql_config
sed -i $out/bin/mysql_config \
-e 's,-lz,-L${zlib}/lib -lz,g' \
-e 's,-lssl,-L${openssl}/lib -lssl,g'
# Add mysql_config to libs since configure scripts use it
mkdir -p $lib/bin
cp $out/bin/mysql_config $lib/bin