nixpkgs/pkgs/development/tools/analysis/lcov/default.nix
Bjørn Forsman 83d56298aa lcov: 1.13 -> 1.14
No need to set BIN_DIR, MAN_DIR anymore, but have to set LCOV_PERL_PATH
now.
2019-03-17 11:04:02 +01:00

37 lines
1.0 KiB
Nix

{stdenv, fetchurl, perl}:
stdenv.mkDerivation rec {
name = "lcov-1.14";
src = fetchurl {
url = "mirror://sourceforge/ltp/${name}.tar.gz";
sha256 = "06h7ixyznf6vz1qvksjgy5f3q2nw9akf6zx59npf0h3l32cmd68l";
};
buildInputs = [ perl ];
preBuild = ''
patchShebangs bin/
makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl))
'';
meta = with stdenv.lib; {
description = "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 = stdenv.lib.licenses.gpl2Plus;
maintainers = with maintainers; [ dezgeg ];
platforms = platforms.all;
};
}