at 24.11-pre 954 B view raw
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 mainProgram = "cppi"; 19 20 longDescription = 21 '' GNU cppi indents C preprocessor directives to reflect their nesting 22 and ensure that there is exactly one space character between each #if, 23 #elif, #define directive and the following token. The number of 24 spaces between the `#' and the following directive must correspond 25 to the level of nesting of that directive. 26 ''; 27 28 license = lib.licenses.gpl3Plus; 29 30 maintainers = with lib.maintainers; [ sigmanificient ]; 31 platforms = lib.platforms.all; 32 }; 33}