Merge pull request #294256 from K900/how-i-learned-to-stop-worrying-and-love-the-pim

KDE PIM fixes, attempt #again
This commit is contained in:
K900 2024-03-09 14:12:51 +03:00 committed by GitHub
commit 75402cbd63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -263,6 +263,9 @@ stdenv.mkDerivation rec {
moveToOutput "mkspecs/modules" "$dev"
fixQtModulePaths "$dev/mkspecs/modules"
fixQtBuiltinPaths "$out" '*.pr?'
# FIXME: not sure why this isn't added automatically?
patchelf --add-rpath "${libmysqlclient}/lib/mariadb" $out/${qtPluginPrefix}/sqldrivers/libqsqlmysql.so
'';
dontStrip = debugSymbols;

View File

@ -22,4 +22,10 @@ mkKdeDerivation {
extraNativeBuildInputs = [qttools shared-mime-info];
extraBuildInputs = [kaccounts-integration accounts-qt xz mariadb];
# Hardcoded as a QString, which is UTF-16 so Nix can't pick it up automatically
postFixup = ''
mkdir -p $out/nix-support
echo "${mariadb}" > $out/nix-support/depends
'';
}