sacc: fix build on darwin

SIGWINCH is not defined unless we pass -D_DARWIN_C_SOURCE, it seems.
This commit is contained in:
sternenseemann 2021-05-04 14:42:30 +02:00
parent b8336c2b8a
commit 2cea48e5c6

View file

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
CFLAGS = lib.optionals stdenv.isDarwin [
"-D_DARWIN_C_SOURCE"
];
postPatch = ''
substituteInPlace config.mk \
--replace curses ncurses \