2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, lib, stdenv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "cppi";
|
|
|
|
version = "1.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1jk42cjaggk71rimjnx3qpmb6hivps0917vl3z7wbxk3i2whb98j";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://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.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|