nixpkgs-suyu/pkgs/development/tools/analysis/lcov/default.nix
Eelco Dolstra 54a5ad0c6f * Hacked up a patch to let lcov find source files referenced by a
path relative to some arbitrary parent of the .gcno file.  For
  instance, this happens when building Subversion with coverage.

svn path=/nixpkgs/trunk/; revision=16902
2009-08-31 15:02:01 +00:00

31 lines
714 B
Nix

{stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
name = "lcov-1.7";
src = fetchurl {
url = "mirror://sourceforge/ltp/${name}.tar.gz";
sha256 = "1cx3haizs0rw6wjsn486qcn50f3qpybflkkb1780cg6s8jzcwdin";
};
patches = [ ./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 = "A code coverage tool for Linux";
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
};
}