commit
6bba2572c3
15
pkgs/development/tools/misc/indent/darwin.patch
Normal file
15
pkgs/development/tools/misc/indent/darwin.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/config.h.in b/config.h.in
|
||||||
|
index 07e6fce..0c57e2a 100644
|
||||||
|
--- a/config.h.in
|
||||||
|
+++ b/config.h.in
|
||||||
|
@@ -432,8 +432,8 @@
|
||||||
|
# endif
|
||||||
|
# define _GL_EXTERN_INLINE extern
|
||||||
|
#else
|
||||||
|
-# define _GL_INLINE static _GL_UNUSED
|
||||||
|
-# define _GL_EXTERN_INLINE static _GL_UNUSED
|
||||||
|
+# define _GL_INLINE static
|
||||||
|
+# define _GL_EXTERN_INLINE static
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
|
@ -1,23 +1,27 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, texinfo }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "indent-2.2.10";
|
name = "indent-2.2.12";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/indent/${name}.tar.gz";
|
url = "mirror://gnu/indent/${name}.tar.gz";
|
||||||
sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
|
sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
patches = [ ./darwin.patch ];
|
||||||
sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c
|
|
||||||
'';
|
buildInputs = [ texinfo ];
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang
|
||||||
|
"-Wno-implicit-function-declaration";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://www.gnu.org/software/indent/;
|
homepage = "https://www.gnu.org/software/indent/";
|
||||||
description = "A source code reformatter";
|
description = "A source code reformatter";
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
license = stdenv.lib.licenses.gpl3Plus;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.mmahut ];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user