2004-10-22 16:34:58 +02:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
2009-08-28 16:11:09 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lcov-1.7";
|
2008-03-20 19:51:07 +01:00
|
|
|
|
2004-10-22 16:34:58 +02:00
|
|
|
src = fetchurl {
|
2009-08-28 16:11:09 +02:00
|
|
|
url = "mirror://sourceforge/ltp/${name}.tar.gz";
|
|
|
|
sha256 = "1cx3haizs0rw6wjsn486qcn50f3qpybflkkb1780cg6s8jzcwdin";
|
2004-10-22 16:34:58 +02:00
|
|
|
};
|
2008-03-20 19:51:07 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PREFIX=$out BIN_DIR=$out/bin MAN_DIR=$out/share/man)
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace bin/install.sh --replace /bin/bash $shell
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
substituteInPlace $i --replace /usr/bin/perl ${perl}/bin/perl
|
|
|
|
done
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A code coverage tool for Linux";
|
|
|
|
homepage = http://ltp.sourceforge.net/coverage/lcov.php;
|
|
|
|
};
|
2004-10-22 16:34:58 +02:00
|
|
|
}
|