Skip to content

Commit 27c93e9

Browse files
committed
tulip: fix compilation by adding the -fpermissive flag
A typecast from unsigned char* to char* in the source broke the build
1 parent b62797a commit 27c93e9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pkgs/applications/science/misc/tulip/default.nix

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ stdenv.mkDerivation rec {
4747

4848
qtWrapperArgs = [ ''--prefix PATH : ${lib.makeBinPath [ python3 ]}'' ];
4949

50-
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [
51-
# fatal error: 'Python.h' file not found
52-
"-I${python3}/include/${python3.libPrefix}"
53-
# error: format string is not a string literal (potentially insecure)
54-
"-Wno-format-security"
55-
]);
50+
env.NIX_CFLAGS_COMPILE =
51+
# error: invalid conversion from 'unsigned char*' to 'char*'
52+
"-fpermissive "
53+
+ (lib.optionalString stdenv.hostPlatform.isDarwin (toString [
54+
# fatal error: 'Python.h' file not found
55+
"-I${python3}/include/${python3.libPrefix}"
56+
# error: format string is not a string literal (potentially insecure)
57+
"-Wno-format-security"
58+
]));
5659

5760
# FIXME: "make check" needs Docbook's DTD 4.4, among other things.
5861
doCheck = false;

0 commit comments

Comments
 (0)