nixpkgs/pkgs/development/tools/misc/indent/default.nix

28 lines
673 B
Nix
Raw Normal View History

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