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