Skip to content

Commit 22078e2

Browse files
lcov: fix and enable strictDeps (#377596)
2 parents 93cba59 + a44dfab commit 22078e2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pkgs/by-name/lc/lcov/package.nix

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,22 @@ stdenv.mkDerivation rec {
3030
hash = "sha256-Qz5Q1JRJeB0aCaYmCR8jeG7TQPkvJHtJTkBhXGM05ak=";
3131
};
3232

33-
nativeBuildInputs = [ makeWrapper ];
33+
nativeBuildInputs = [
34+
makeWrapper
35+
perl
36+
];
3437

3538
buildInputs = [
3639
perl
3740
python3
3841
];
3942

43+
strictDeps = true;
44+
4045
preBuild = ''
41-
patchShebangs bin/
42-
makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl))
46+
patchShebangs --build bin/{fix.pl,get_version.sh} tests/*/*
47+
patchShebangs --host bin/{gen*,lcov,perl2lcov}
48+
makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=${lib.getExe perl})
4349
'';
4450

4551
postInstall = ''

0 commit comments

Comments
 (0)