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