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

28 lines
696 B
Nix
Raw Normal View History

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