mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
stfl: fix build with clang 16
This commit is contained in:
parent
ed24081baa
commit
5b3a142837
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue