nixpkgs/pkgs/development/tools/analysis/lcov/default.nix
Eelco Dolstra 4e571746c1 * Apply an upstream patch to fix the "reached unexpected end of file"
errors processing gcno files (e.g. http://hydra.nixos.org/build/410894).

svn path=/nixpkgs/trunk/; revision=22047
2010-05-28 12:58:50 +00:00

48 lines
1.2 KiB
Nix

{stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
name = "lcov-1.8";
src = fetchurl {
url = "mirror://sourceforge/ltp/${name}.tar.gz";
sha256 = "1xrd9abh1gyki9ln9v772dq7jinvyrvx39s3kxbpiila68mbpa7j";
};
patches =
[ ./unexpected-eof.patch
./find-source.patch
];
preBuild = ''
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
'';
preInstall = ''
substituteInPlace bin/install.sh --replace /bin/bash $shell
'';
postInstall = ''
for i in "$out/bin/"*; do
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
done
'';
meta = {
description = "LCOV, a code coverage tool that enhances GNU gcov";
longDescription =
'' LCOV is an extension of GCOV, a GNU tool which provides information
about what parts of a program are actually executed (i.e.,
"covered") while running a particular test case. The extension
consists of a set of PERL scripts which build on the textual GCOV
output to implement the following enhanced functionality such as
HTML output.
'';
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
license = "GPLv2+";
maintainers = [ stdenv.lib.maintainers.ludo ];
};
}