1 {lib, stdenv, fetchFromGitHub, perl, perlPackages, makeWrapper }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "linux-test-project";
11 sha256 = "sha256-X1T5OqR6NgTNGedH1on3+XZ7369007By6tRJK8xtmbk=";
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ perl ];
19 makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl))
23 wrapProgram $out/bin/lcov --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.PerlIOgzip perlPackages.JSON ]}
24 wrapProgram $out/bin/genpng --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.GD ]}
28 description = "Code coverage tool that enhances GNU gcov";
31 '' LCOV is an extension of GCOV, a GNU tool which provides information
32 about what parts of a program are actually executed (i.e.,
33 "covered") while running a particular test case. The extension
34 consists of a set of PERL scripts which build on the textual GCOV
35 output to implement the following enhanced functionality such as
39 homepage = "https://ltp.sourceforge.net/coverage/lcov.php";
40 license = lib.licenses.gpl2Plus;
42 maintainers = with maintainers; [ dezgeg ];
43 platforms = platforms.all;