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

24 lines
608 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "indent-2.2.10";
src = fetchurl {
url = "mirror://gnu/indent/${name}.tar.gz";
sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
};
2016-08-21 06:58:21 +02:00
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c
'';
2016-08-29 03:29:00 +02:00
hardeningDisable = [ "format" ];
meta = {
homepage = https://www.gnu.org/software/indent/;
description = "A source code reformatter";
license = stdenv.lib.licenses.gpl3Plus;
2016-08-21 06:58:21 +02:00
platforms = stdenv.lib.platforms.unix;
};
}