Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{stdenv, fetchurl, perl}: | ||
{stdenv, fetchurl, fetchpatch, perl, perlPackages, makeWrapper }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "lcov-1.14"; | ||
|
@@ -8,13 +8,28 @@ stdenv.mkDerivation rec { | |
sha256 = "06h7ixyznf6vz1qvksjgy5f3q2nw9akf6zx59npf0h3l32cmd68l"; | ||
}; | ||
|
||
buildInputs = [ perl ]; | ||
patches = | ||
[ (fetchpatch { | ||
url = https://github.com/linux-test-project/lcov/commit/ebfeb3e179e450c69c3532f98cd5ea1fbf6ccba7.patch; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vcunat
Member
|
||
sha256 = "1z9jfqpj34jnzdvmqr5fs8hl56bvbwd8xhlbg3chcswbjj97vk7l"; | ||
}) | ||
(fetchpatch { | ||
url = https://github.com/linux-test-project/lcov/commit/75fbae1cfc5027f818a0bb865bf6f96fab3202da.patch; | ||
sha256 = "1wgd4y7vhvfnxyhdd0z2pi9ys6l0z88f14i69a7prb296m1zwg5j"; | ||
}) | ||
]; | ||
|
||
buildInputs = [ perl makeWrapper ]; | ||
|
||
preBuild = '' | ||
patchShebangs bin/ | ||
makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl)) | ||
''; | ||
|
||
postInstall = '' | ||
wrapProgram $out/bin/lcov --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.PerlIOgzip perlPackages.JSON ]} | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Code coverage tool that enhances GNU gcov"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The checksum appears to have changed since this commit. How is that even possible when the revision is fixed?
Getting the following locally: