1{
2 fetchurl,
3 lib,
4 stdenv,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "cppi";
9 version = "1.18";
10
11 src = fetchurl {
12 url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
13 sha256 = "1jk42cjaggk71rimjnx3qpmb6hivps0917vl3z7wbxk3i2whb98j";
14 };
15
16 doCheck = true;
17
18 meta = {
19 homepage = "https://savannah.gnu.org/projects/cppi/";
20
21 description = "C preprocessor directive indenter";
22 mainProgram = "cppi";
23
24 longDescription = ''
25 GNU cppi indents C preprocessor directives to reflect their nesting
26 and ensure that there is exactly one space character between each #if,
27 #elif, #define directive and the following token. The number of
28 spaces between the `#' and the following directive must correspond
29 to the level of nesting of that directive.
30 '';
31
32 license = lib.licenses.gpl3Plus;
33
34 maintainers = with lib.maintainers; [ sigmanificient ];
35 platforms = lib.platforms.all;
36 };
37}