2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "indent-2.2.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/indent/${name}.tar.gz";
|
|
|
|
sha256 = "12xvcd16cwilzglv9h7sgh4h1qqjd1h8s48ji2dla58m4706hzg7";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./darwin.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ texinfo ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Wno-implicit-function-declaration";
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.gnu.org/software/indent/";
|
|
|
|
description = "A source code reformatter";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ lib.maintainers.mmahut ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|