uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/development/tools/analysis/lcov/default.nix
Normal file
45
pkgs/development/tools/analysis/lcov/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{lib, stdenv, fetchFromGitHub, perl, perlPackages, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lcov";
|
||||
version = "1.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linux-test-project";
|
||||
repo = "lcov";
|
||||
rev = "v${version}";
|
||||
sha256 = "1kvc7fkp45w48f0bxwbxvxkicnjrrydki0hllg294n1wrp80zzyk";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ perl ];
|
||||
|
||||
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 ]}
|
||||
wrapProgram $out/bin/genpng --set PERL5LIB ${perlPackages.makeFullPerlPath [ perlPackages.GD ]}
|
||||
'';
|
||||
|
||||
meta = with 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 = lib.licenses.gpl2Plus;
|
||||
|
||||
maintainers = with maintainers; [ dezgeg ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue