stfl: fix build with clang 16

This commit is contained in:
Randy Eckenrode 2023-11-03 13:37:10 -04:00
parent ed24081baa
commit 5b3a142837
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses libiconv ];
# Silence warnings related to use of implicitly declared library functions and implicit ints.
# TODO: Remove and/or fix with patches the next time this package is updated.
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=implicit-int"
];
};
preBuild = ''
sed -i s/gcc/cc/g Makefile
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h