2020-02-28 11:31:02 +00:00
|
|
|
{stdenv, fetchurl, fetchpatch, perl, perlPackages, makeWrapper }:
|
2004-10-22 15:34:58 +01:00
|
|
|
|
2009-08-28 15:11:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-03-15 07:27:54 +00:00
|
|
|
name = "lcov-1.14";
|
2010-04-18 22:51:33 +01:00
|
|
|
|
2004-10-22 15:34:58 +01:00
|
|
|
src = fetchurl {
|
2009-08-28 15:11:09 +01:00
|
|
|
url = "mirror://sourceforge/ltp/${name}.tar.gz";
|
2019-03-15 07:27:54 +00:00
|
|
|
sha256 = "06h7ixyznf6vz1qvksjgy5f3q2nw9akf6zx59npf0h3l32cmd68l";
|
2004-10-22 15:34:58 +01:00
|
|
|
};
|
2008-03-20 18:51:07 +00:00
|
|
|
|
2020-02-28 11:31:02 +00:00
|
|
|
patches =
|
|
|
|
[ (fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/linux-test-project/lcov/commit/ebfeb3e179e450c69c3532f98cd5ea1fbf6ccba7.patch";
|
2020-03-03 15:53:13 +00:00
|
|
|
sha256 = "0dalkqbjb6a4vp1lcsxd39dpn5fzdf7ihsjbiviq285s15nxdj1j";
|
2020-02-28 11:31:02 +00:00
|
|
|
})
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/linux-test-project/lcov/commit/75fbae1cfc5027f818a0bb865bf6f96fab3202da.patch";
|
2020-03-03 15:53:13 +00:00
|
|
|
sha256 = "0v1hn0511dxqbf50ppwasc6vmg0m6rns7ydbdy2rdbn0j7gxw30x";
|
2020-02-28 11:31:02 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ perl makeWrapper ];
|
2009-08-31 16:02:01 +01:00
|
|
|
|
2008-03-20 18:51:07 +00:00
|
|
|
preBuild = ''
|
2016-05-05 09:38:33 +01:00
|
|
|
patchShebangs bin/
|
2019-03-15 07:27:54 +00:00
|
|
|
makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl))
|
2008-03-20 18:51:07 +00:00
|
|
|
'';
|
|
|
|
|
2020-02-28 11:31:02 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/lcov --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.PerlIOgzip perlPackages.JSON ]}
|
|
|
|
'';
|
|
|
|
|
2014-01-28 17:11:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Code coverage tool that enhances GNU gcov";
|
2010-04-18 22:51:33 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://ltp.sourceforge.net/coverage/lcov.php";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-04-18 22:51:33 +01:00
|
|
|
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = with maintainers; [ dezgeg ];
|
2014-01-28 17:11:00 +00:00
|
|
|
platforms = platforms.all;
|
2008-03-20 18:51:07 +00:00
|
|
|
};
|
2004-10-22 15:34:58 +01:00
|
|
|
}
|