nixpkgs/pkgs
Austin Seipp 76b05b1630 releaseTools: add {clang,coverity}Analysis tools
These two expressions greatly simplify using the clang-analyzer or
Coverity static analyzer on your C/C++ projects. In fact, they are
identical to nixBuild in every way out of the box, and should 'Just
Work' providing your code can be compiled with Clang already.

The trick is that when running 'make', we actually just alias it to the
appropriate scan build tool, and add a post-build hook that will bundle
up the results appropriately and unalias it.

For Clang, we put the results in $out/analysis and add an 'analysis'
report to $out/nix-support/hydra-build-products pointing to the result
HTML - this means that if the analyzer finds any bugs, the HTML results
will automatically show up Hydra for easy viewing.

For Coverity, it's slightly different. Instead we run the build tool and
after we're done, we tar up the results in a format that Coverity Scan's
service understands. We put the tarball in $out/tarballs under the name
'foo-cov-int.xz' and add an entry for the file to hydra-build-products
as well for easy viewing.

Of course for Coverity you must then upload the build. A Hydra plugin to
do this is on the way, and it will automatically pick up the
cov-int.tar.xz for uploading.

Note that coverityAnalysis requires allowUnfree = true;, as well as the
cov-build tools, which you can download from https://scan.coverity.com -
they're not linked to your account or anything, it's just an annoying
registration wall.

Note this is a first draft. In particular, scan-build fixes the C/C++
compiler to be Clang, and it's perfectly reasonable to want to use Clang
for the analyzer but have scan-build invoke GCC instead.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2014-05-02 14:07:37 -05:00
..
applications z3/verifast: update license 2014-05-01 19:09:24 -05:00
build-support releaseTools: add {clang,coverity}Analysis tools 2014-05-02 14:07:37 -05:00
data tzdata: use symlinks instead of hardlinks 2014-04-29 16:25:10 +02:00
desktops xfce: fix typo introduced in recent commit (s/gtk/gtk3/) 2014-04-29 19:13:43 +02:00
development clang-analyzer: respect $NIX_CFLAGS_COMPILE 2014-05-02 14:07:37 -05:00
games tibia: version 10.39 2014-05-02 20:38:42 +02:00
misc vim-plugins: update and upgrade 2014-04-21 19:21:18 +02:00
os-specific systemd: Look for fsck.* in the right place 2014-05-01 14:32:58 +02:00
servers nginx: upgrade to 1.6.0, expose many more modules 2014-05-02 01:24:38 -05:00
shells ipython: update 1.1.0 -> 2.0.0 2014-04-13 21:55:27 +02:00
stdenv Typo/comment 2014-04-22 18:42:44 +02:00
test
tools nixos: overhaul datadog module 2014-05-02 01:24:35 -05:00
top-level Readding Erlang R16B02: R17 is a major update and it breaks Ejabberd. 2014-05-02 20:50:58 +04:00