tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
indent: fix darwin build
Daiderd Jordan
6 years ago
77908680
5c7ce21c
+19
-3
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
misc
indent
darwin.patch
default.nix
+15
pkgs/development/tools/misc/indent/darwin.patch
···
1
1
+
diff --git a/config.h.in b/config.h.in
2
2
+
index 07e6fce..0c57e2a 100644
3
3
+
--- a/config.h.in
4
4
+
+++ b/config.h.in
5
5
+
@@ -432,8 +432,8 @@
6
6
+
# endif
7
7
+
# define _GL_EXTERN_INLINE extern
8
8
+
#else
9
9
+
-# define _GL_INLINE static _GL_UNUSED
10
10
+
-# define _GL_EXTERN_INLINE static _GL_UNUSED
11
11
+
+# define _GL_INLINE static
12
12
+
+# define _GL_EXTERN_INLINE static
13
13
+
#endif
14
14
+
15
15
+
#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
+4
-3
pkgs/development/tools/misc/indent/default.nix
···
8
8
sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7";
9
9
};
10
10
11
11
+
patches = [ ./darwin.patch ];
12
12
+
11
13
buildInputs = [ texinfo ];
12
14
13
13
-
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
14
14
-
sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c
15
15
-
'';
15
15
+
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang
16
16
+
"-Wno-implicit-function-declaration";
16
17
17
18
hardeningDisable = [ "format" ];
18
19