From 2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 4 May 2021 14:42:30 +0200 Subject: [PATCH] sacc: fix build on darwin SIGWINCH is not defined unless we pass -D_DARWIN_C_SOURCE, it seems. --- pkgs/applications/networking/gopher/sacc/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/gopher/sacc/default.nix b/pkgs/applications/networking/gopher/sacc/default.nix index 046ae42ebcb..4d18f6a4f4a 100644 --- a/pkgs/applications/networking/gopher/sacc/default.nix +++ b/pkgs/applications/networking/gopher/sacc/default.nix @@ -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 \