Fixing JOE, the fully functional text editor, on macOS (#346118)

joe: fix build on darwin

Adding guards for apple

authored by Pierre-Etienne Meunier and committed by GitHub 0cd4c27f 402fdd44

+15
+13
pkgs/by-name/jo/joe/macos-fix.patch
···
··· 1 + diff -Naru i/joe/tty.c w/joe/tty.c 2 + --- ./joe/tty.c 2018-01-10 17:28:34 3 + +++ ../joe-i-4.6/joe/tty.c 2024-10-02 14:08:22 4 + @@ -6,6 +6,9 @@ 5 + * This file is part of JOE (Joe's Own Editor) 6 + */ 7 + #include "types.h" 8 + +#if defined(__APPLE__) && defined(__MACH__) 9 + +#include <util.h> 10 + +#endif 11 + 12 + /* Needed for TIOCGWINSZ detection below */ 13 + #ifdef GWINSZ_IN_SYS_IOCTL
+2
pkgs/by-name/jo/joe/package.nix
··· 9 sha256 = "1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9"; 10 }; 11 12 meta = with lib; { 13 description = "Full featured terminal-based screen editor"; 14 longDescription = ''
··· 9 sha256 = "1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9"; 10 }; 11 12 + patches = [ ./macos-fix.patch ]; 13 + 14 meta = with lib; { 15 description = "Full featured terminal-based screen editor"; 16 longDescription = ''