tulip: fix compilation by adding the -fpermissive flag

A typecast from unsigned char* to char* in the source broke the build
This commit is contained in:
Noa Aarts 2024-11-07 15:05:48 +01:00
parent b62797a3d7
commit 27c93e95f9
No known key found for this signature in database
GPG Key ID: 1850932741EFF672

View File

@ -47,12 +47,15 @@ stdenv.mkDerivation rec {
qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [
# fatal error: 'Python.h' file not found
"-I${python3}/include/${python3.libPrefix}"
# error: format string is not a string literal (potentially insecure)
"-Wno-format-security"
]);
env.NIX_CFLAGS_COMPILE =
# error: invalid conversion from 'unsigned char*' to 'char*'
"-fpermissive "
+ (lib.optionalString stdenv.hostPlatform.isDarwin (toString [
# fatal error: 'Python.h' file not found
"-I${python3}/include/${python3.libPrefix}"
# error: format string is not a string literal (potentially insecure)
"-Wno-format-security"
]));
# FIXME: "make check" needs Docbook's DTD 4.4, among other things.
doCheck = false;