From ab76f3220da5b6cfdf39f16683ec4be53299fc79 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Thu, 7 Apr 2022 00:18:09 -0500 Subject: [PATCH] xedit: fix build on darwin --- pkgs/applications/editors/xedit/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/xedit/default.nix b/pkgs/applications/editors/xedit/default.nix index 5de0aed34049..539ef5087c7e 100644 --- a/pkgs/applications/editors/xedit/default.nix +++ b/pkgs/applications/editors/xedit/default.nix @@ -22,6 +22,13 @@ stdenv.mkDerivation rec { sha256 = "0b5ic13aasv6zh20v2k7zyxsqbnsxfq5rs3w8nwzl1gklmgrjxa3"; }; + # ./lisp/mathimp.c:493:10: error: implicitly declaring library function 'finite' with type 'int (double)' + postPatch = lib.optionalString stdenv.isDarwin '' + for i in $(find . -type f -name "*.c"); do + substituteInPlace $i --replace "finite" "isfinite" + done + ''; + nativeBuildInputs = [ autoreconfHook pkg-config utilmacros ]; buildInputs = [ libX11 @@ -40,6 +47,6 @@ stdenv.mkDerivation rec { homepage = "https://gitlab.freedesktop.org/xorg/app/xedit"; license = with licenses; [ mit ]; maintainers = with maintainers; [ shamilton ]; - platforms = platforms.linux; + platforms = platforms.unix; }; }