mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Add GNU cppi.
svn path=/nixpkgs/trunk/; revision=20363
This commit is contained in:
parent
888d6711da
commit
07356746ef
2 changed files with 37 additions and 0 deletions
33
pkgs/development/tools/misc/cppi/default.nix
Normal file
33
pkgs/development/tools/misc/cppi/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ fetchurl, xz, stdenv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cppi-1.14";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/cppi/${name}.tar.xz";
|
||||
sha256 = "0n7388f5z4nnyh17rnj7h0kvml3x2mba6a5km87k2bvm5v4mcrfc";
|
||||
};
|
||||
|
||||
buildInputs = [ xz ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://savannah.gnu.org/projects/cppi/;
|
||||
|
||||
description = "GNU cppi, a cpp 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 = "GPLv3+";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
|
@ -2906,6 +2906,10 @@ let
|
|||
inherit fetchurl stdenv perl python ocaml ncurses makeWrapper;
|
||||
};
|
||||
|
||||
cppi = import ../development/tools/misc/cppi {
|
||||
inherit fetchurl stdenv xz;
|
||||
};
|
||||
|
||||
cproto = import ../development/tools/misc/cproto {
|
||||
inherit fetchurl stdenv flex bison;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue