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

32 lines
893 B
Nix
Raw Normal View History

{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
2013-03-18 11:37:46 +01:00
name = "cppi-1.18";
src = fetchurl {
url = "mirror://gnu/cppi/${name}.tar.xz";
2013-03-18 11:37:46 +01:00
sha256 = "1jk42cjaggk71rimjnx3qpmb6hivps0917vl3z7wbxk3i2whb98j";
};
doCheck = true;
meta = {
homepage = http://savannah.gnu.org/projects/cppi/;
description = "A C preprocessor directive indenter";
longDescription =
'' GNU cppi indents C preprocessor directives to reflect their nesting
and ensure that there is exactly one space character between each #if,
#elif, #define directive and the following token. The number of
spaces between the `#' and the following directive must correspond
to the level of nesting of that directive.
'';
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.all;
};
}