From 6921e41e849b5ae3347e64cfbeb91cf80f41c576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 28 Oct 2008 08:43:44 +0000 Subject: [PATCH] Add GNU cflow. svn path=/nixpkgs/trunk/; revision=13129 --- pkgs/development/tools/misc/cflow/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/tools/misc/cflow/default.nix diff --git a/pkgs/development/tools/misc/cflow/default.nix b/pkgs/development/tools/misc/cflow/default.nix new file mode 100644 index 000000000000..3a55913a0d32 --- /dev/null +++ b/pkgs/development/tools/misc/cflow/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, gettext, emacs }: + +stdenv.mkDerivation rec { + name = "cflow-1.2"; + + src = fetchurl { + url = "mirror://gnu/cflow/${name}.tar.bz2"; + sha256 = "0b45b1x1g9i23mv68pjl008qm4lkbd62hka2bf2gkjd2n4nalc6v"; + }; + + buildInputs = [ gettext emacs ]; + + doCheck = true; + + meta = { + description = "GNU cflow, a tool to analyze the control flow of C programs"; + + longDescription = '' + GNU cflow analyzes a collection of C source files and prints a + graph, charting control flow within the program. + + GNU cflow is able to produce both direct and inverted flowgraphs + for C sources. Optionally a cross-reference listing can be + generated. Two output formats are implemented: POSIX and GNU + (extended). + + The package also provides Emacs major mode for examining the + produced flowcharts in Emacs. + ''; + + license = "GPLv3+"; + + homepage = http://www.gnu.org/software/cflow/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 475d81e80df1..6245310474ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2225,6 +2225,10 @@ let inherit fetchurl stdenv flex bison; }; + cflow = import ../development/tools/misc/cflow { + inherit fetchurl stdenv gettext emacs; + }; + cscope = import ../development/tools/misc/cscope { inherit fetchurl stdenv ncurses pkgconfig emacs; };