From 3dbbca0371adce474db6c3cce87d06e1853df310 Mon Sep 17 00:00:00 2001 From: KPCCoiL <4506345+KPCCoiL@users.noreply.github.com> Date: Sat, 16 May 2026 15:29:48 +0900 Subject: [PATCH] _4th: fix editor for 64bit systems Use headers in `sources/include{32, 64}` to fix the builtin editor, as suggested by `README`. The problem is described in the FAQ section of the [manual](https://thebeez.home.xs4all.nl/4tH/4tHmanual.pdf). Although the manual suggests regenerating the headers (section 27.8), the required headers seem to be already in the distirbution. --- pkgs/by-name/_4/_4th/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/_4/_4th/package.nix b/pkgs/by-name/_4/_4th/package.nix index b0a291f9f761..325b497f082d 100644 --- a/pkgs/by-name/_4/_4th/package.nix +++ b/pkgs/by-name/_4/_4th/package.nix @@ -20,6 +20,11 @@ stdenv.mkDerivation (finalAttrs: { dontConfigure = true; + preBuild = '' + cp sources/include${if stdenv.hostPlatform.is64bit then "64" else "32"}/* sources/ + make -C sources clean + ''; + makeFlags = [ "-C sources" "CC:=$(CC)"