summary refs log tree commit diff
path: root/pkgs/applications/networking/gopher
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-05-04 14:42:30 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-05-04 14:42:30 +0200
commit2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb (patch)
treed586a844168c1ab4b1e67659c26b92c2931f5c1e /pkgs/applications/networking/gopher
parentb8336c2b8abaabb4307ef2f1c38ec48f2f1dbf6f (diff)
downloadnixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar.gz
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar.bz2
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar.lz
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar.xz
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.tar.zst
nixpkgs-2cea48e5c6e18a5a148fed11ae2f94ea5c3c35eb.zip
sacc: fix build on darwin
SIGWINCH is not defined unless we pass -D_DARWIN_C_SOURCE, it seems.
Diffstat (limited to 'pkgs/applications/networking/gopher')
-rw-r--r--pkgs/applications/networking/gopher/sacc/default.nix4
1 files changed, 4 insertions, 0 deletions
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 \