1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

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";