added cproto ( C function prototype generator )
svn path=/nixpkgs/trunk/; revision=11730
This commit is contained in:
parent
d05d1e3af5
commit
52c3910434
11
pkgs/development/tools/misc/cproto/cproto_patch
Normal file
11
pkgs/development/tools/misc/cproto/cproto_patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -Naur cproto-4.6-old/cproto.h cproto-4.6/cproto.h
|
||||
--- cproto-4.6-old/cproto.h 1998-01-18 19:49:16.000000000 -0500
|
||||
+++ cproto-4.6/cproto.h 2004-03-14 00:02:32.148070032 -0500
|
||||
@@ -117,6 +117,7 @@
|
||||
Declarator *declarator;
|
||||
DeclaratorList decl_list;
|
||||
} YYSTYPE;
|
||||
+#define YYSTYPE_IS_DECLARED 1
|
||||
|
||||
/* Prototype styles */
|
||||
#if OPT_LINTLIBRARY
|
20
pkgs/development/tools/misc/cproto/default.nix
Normal file
20
pkgs/development/tools/misc/cproto/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
args:
|
||||
args.stdenv.mkDerivation {
|
||||
name = "cproto-4.6";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = mirror://sourceforge/cproto/cproto-4.6.tar.gz;
|
||||
sha256 = "0ilhkx9iwc5bh65q47mf68p39iyk07d52fv00z431nl6qcb9hp9j";
|
||||
};
|
||||
|
||||
buildInputs =(with args; [flex bison]);
|
||||
|
||||
# patch made by Joe Khoobyar copied from gentoo bugs
|
||||
patches= ./cproto_patch ;
|
||||
|
||||
meta = {
|
||||
description = "generate C function prototypes from C source code";
|
||||
homepage = http://cproto.sourceforge.net/;
|
||||
license = "public domain";
|
||||
};
|
||||
}
|
@ -1974,6 +1974,10 @@ let pkgs = rec {
|
||||
inherit fetchurl stdenv replace;
|
||||
};
|
||||
|
||||
cproto = import ../development/tools/misc/cproto {
|
||||
inherit fetchurl stdenv flex bison;
|
||||
};
|
||||
|
||||
dejagnu = import ../development/tools/misc/dejagnu {
|
||||
inherit fetchurl stdenv expect makeWrapper;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user