pyqt6: fix build on darwin

Disable error on -address-of-temporary through linker flag.
This commit is contained in:
Thibault Gagnaux 2023-11-25 14:44:15 +01:00 committed by Silvan Mosberger
parent 7cbcc1fdd4
commit b7a8d59e3a

View File

@ -133,7 +133,10 @@ buildPythonPackage rec {
;
# fix build with qt 6.6
env.NIX_CFLAGS_COMPILE = "-fpermissive";
env.NIX_CFLAGS_COMPILE = toString ([
"-fpermissive"
]
++ lib.optional (stdenv.isDarwin) "-Wno-address-of-temporary");
meta = with lib; {
description = "Python bindings for Qt6";