2019-05-21 08:26:11 -07:00
|
|
|
{ stdenv, fetchurl, texinfo }:
|
2009-10-28 06:11:09 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-21 08:26:11 -07:00
|
|
|
name = "indent-2.2.12";
|
2009-10-28 06:11:09 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-13 19:23:06 -07:00
|
|
|
url = "mirror://gnu/indent/${name}.tar.gz";
|
2019-05-21 08:26:11 -07:00
|
|
|
sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7";
|
2009-10-28 06:11:09 -07:00
|
|
|
};
|
2016-08-20 21:58:21 -07:00
|
|
|
|
2019-05-21 14:27:10 -07:00
|
|
|
patches = [ ./darwin.patch ];
|
|
|
|
|
2019-05-21 08:26:11 -07:00
|
|
|
buildInputs = [ texinfo ];
|
|
|
|
|
2019-05-21 14:27:10 -07:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang
|
|
|
|
"-Wno-implicit-function-declaration";
|
2016-08-20 21:58:21 -07:00
|
|
|
|
2016-08-28 18:29:00 -07:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2009-10-28 06:11:09 -07:00
|
|
|
meta = {
|
2019-05-21 08:26:11 -07:00
|
|
|
homepage = "https://www.gnu.org/software/indent/";
|
2009-10-28 06:11:09 -07:00
|
|
|
description = "A source code reformatter";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2019-05-21 08:26:11 -07:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mmahut ];
|
2016-08-20 21:58:21 -07:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-10-28 06:11:09 -07:00
|
|
|
};
|
|
|
|
}
|