2009-10-28 13:11:09 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "indent-2.2.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = "mirror://gnu/indent/${name}.tar.gz";
|
2009-10-28 13:11:09 +00:00
|
|
|
sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
|
|
|
|
};
|
2016-08-21 05:58:21 +01:00
|
|
|
|
|
|
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c
|
|
|
|
'';
|
|
|
|
|
2016-08-29 02:29:00 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2009-10-28 13:11:09 +00:00
|
|
|
meta = {
|
2016-03-16 21:42:22 +00:00
|
|
|
homepage = https://www.gnu.org/software/indent/;
|
2009-10-28 13:11:09 +00:00
|
|
|
description = "A source code reformatter";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2016-08-21 05:58:21 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-10-28 13:11:09 +00:00
|
|
|
};
|
|
|
|
}
|