cqrlog: switch from mysql57 to mariadb

This commit is contained in:
Yorick van Pelt 2022-10-11 17:27:30 +02:00
parent d1dcdeebfa
commit 4a90d82f1a
No known key found for this signature in database
GPG key ID: A36E70F9DC014A15

View file

@ -11,7 +11,7 @@
, libX11
, pango
, hamlib
, mysql57
, mariadb
, tqsl
, xdg-utils
, xplanet
@ -55,8 +55,8 @@ stdenv.mkDerivation rec {
--replace "/usr/bin/rigctld" "${hamlib}/bin/rigctld"
# Order is important
substituteInPlace src/dData.pas \
--replace "/usr/bin/mysqld_safe" "${mysql57}/bin/mysqld_safe" \
--replace "/usr/bin/mysqld" "${mysql57}/bin/mysqld"
--replace "/usr/bin/mysqld_safe" "${mariadb}/bin/mysqld_safe" \
--replace "/usr/bin/mysqld" "${mariadb}/bin/mysqld"
# To be fail when I need to patch a new hardcoded binary
! grep -C src -RC0 "/usr"
@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
];
propagatedBuildInputs = [
hamlib
mysql57
mariadb
tqsl
xdg-utils
xplanet
@ -87,8 +87,10 @@ stdenv.mkDerivation rec {
];
postFixup = ''
libmysqlclient=$(find "${mysql57}/lib" -name "libmysqlclient.so.*" | tail -n1)
patchelf --add-needed "$libmysqlclient" "$out/bin/.cqrlog-wrapped"
libmysqlclient=$(find "${mariadb.client}/lib" -name "libmysqlclient.so" | tail -n1)
patchelf --add-needed "libmysqlclient.so" \
--add-rpath "$(dirname "$libmysqlclient")" \
"$out/bin/.cqrlog-wrapped"
'';
meta = with lib; {