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