python-qt: prefix lib with $out on darwin

This commit is contained in:
Guilhem Saurel 2024-04-16 12:58:35 +02:00
parent a69334e5ad
commit 54b90c14cb

View File

@ -60,6 +60,15 @@ stdenv.mkDerivation (finalAttrs: {
cp -r ./extensions $out/include/PythonQt
'';
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -id \
$out/lib/libPythonQt-Qt5-Python3.${python3.sourceVersion.minor}.dylib \
$out/lib/libPythonQt-Qt5-Python3.${python3.sourceVersion.minor}.dylib
install_name_tool -id \
$out/lib/libPythonQt_QtAll-Qt5-Python3.${python3.sourceVersion.minor}.dylib \
$out/lib/libPythonQt_QtAll-Qt5-Python3.${python3.sourceVersion.minor}.dylib
'';
meta = with lib; {
description = "PythonQt is a dynamic Python binding for the Qt framework. It offers an easy way to embed the Python scripting language into your C++ Qt applications";
homepage = "https://pythonqt.sourceforge.net/";