Skip to content

Commit

Permalink
joe: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
P-E-Meunier committed Oct 7, 2024
1 parent dd89098 commit 5e5ebfb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/by-name/jo/joe/macos-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -Naru i/joe/tty.c w/joe/tty.c
--- ./joe/tty.c 2018-01-10 17:28:34
+++ ../joe-i-4.6/joe/tty.c 2024-10-02 14:08:22
@@ -6,6 +6,7 @@
* This file is part of JOE (Joe's Own Editor)
*/
#include "types.h"
+#include <util.h>

/* Needed for TIOCGWINSZ detection below */
#ifdef GWINSZ_IN_SYS_IOCTL
2 changes: 2 additions & 0 deletions pkgs/by-name/jo/joe/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9";
};

patches = [ ./macos-fix.patch ];

meta = with lib; {
description = "Full featured terminal-based screen editor";
longDescription = ''
Expand Down

0 comments on commit 5e5ebfb

Please sign in to comment.