mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
qwt6_qt4: preFixup: Repair relative reference in darwin framework output
This commit is contained in:
parent
f90ddc99f6
commit
97c5cf0bf2
@ -18,6 +18,13 @@ stdenv.mkDerivation rec {
|
||||
sed -e "s|QWT_INSTALL_PREFIX.*=.*|QWT_INSTALL_PREFIX = $out|g" -i qwtconfig.pri
|
||||
'';
|
||||
|
||||
# qwt.framework output includes a relative reference to itself, which breaks dependents
|
||||
preFixup =
|
||||
stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
echo "Attempting to repair qwt"
|
||||
install_name_tool -id "$out/lib/qwt.framework/Versions/6/qwt" "$out/lib/qwt.framework/Versions/6/qwt"
|
||||
'';
|
||||
|
||||
qmakeFlags = [ "-after doc.path=$out/share/doc/${name}" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user