indent: fix darwin build

+19 -3
+15
pkgs/development/tools/misc/indent/darwin.patch
···
··· 1 + diff --git a/config.h.in b/config.h.in 2 + index 07e6fce..0c57e2a 100644 3 + --- a/config.h.in 4 + +++ b/config.h.in 5 + @@ -432,8 +432,8 @@ 6 + # endif 7 + # define _GL_EXTERN_INLINE extern 8 + #else 9 + -# define _GL_INLINE static _GL_UNUSED 10 + -# define _GL_EXTERN_INLINE static _GL_UNUSED 11 + +# define _GL_INLINE static 12 + +# define _GL_EXTERN_INLINE static 13 + #endif 14 + 15 + #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
+4 -3
pkgs/development/tools/misc/indent/default.nix
··· 8 sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7"; 9 }; 10 11 buildInputs = [ texinfo ]; 12 13 - postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 14 - sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c 15 - ''; 16 17 hardeningDisable = [ "format" ]; 18
··· 8 sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7"; 9 }; 10 11 + patches = [ ./darwin.patch ]; 12 + 13 buildInputs = [ texinfo ]; 14 15 + NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang 16 + "-Wno-implicit-function-declaration"; 17 18 hardeningDisable = [ "format" ]; 19