qt6Packages.qtpbfimageplugin: fix build on aarch64-darwin
This commit is contained in:
parent
c0d8c84f40
commit
44b66a31f8
@ -23,9 +23,16 @@ stdenv.mkDerivation rec {
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# Fix darwin build
|
||||
substituteInPlace pbfplugin.pro \
|
||||
--replace '$$PROTOBUF/include' '${protobuf}/include' \
|
||||
--replace '$$PROTOBUF/lib/libprotobuf-lite.a' '${protobuf}/lib/libprotobuf-lite.dylib'
|
||||
'';
|
||||
|
||||
# error: 'path' is unavailable: introduced in macOS 10.15
|
||||
qmakeFlags = lib.optionals stdenv.isDarwin [
|
||||
"CONFIG+=c++17"
|
||||
"QMAKE_MACOSX_DEPLOYMENT_TARGET=10.15"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Qt image plugin for displaying Mapbox vector tiles";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user