Unverified Commit 22078e25 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

lcov: fix and enable strictDeps (#377596)

parents 93cba596 a44dfabf
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -30,16 +30,22 @@ stdenv.mkDerivation rec {
    hash = "sha256-Qz5Q1JRJeB0aCaYmCR8jeG7TQPkvJHtJTkBhXGM05ak=";
  };

  nativeBuildInputs = [ makeWrapper ];
  nativeBuildInputs = [
    makeWrapper
    perl
  ];

  buildInputs = [
    perl
    python3
  ];

  strictDeps = true;

  preBuild = ''
    patchShebangs bin/
    makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=$(command -v perl))
    patchShebangs --build bin/{fix.pl,get_version.sh} tests/*/*
    patchShebangs --host bin/{gen*,lcov,perl2lcov}
    makeFlagsArray=(PREFIX=$out LCOV_PERL_PATH=${lib.getExe perl})
  '';

  postInstall = ''