Merge pull request #165421 from bjornfor/update-cppcheck

cppcheck: 2.7 -> 2.7.3
This commit is contained in:
Robert Scott 2022-03-26 22:15:41 +00:00 committed by GitHub
commit f226c9f546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,19 @@
{ lib, stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre, withZ3 ? true, z3 }: { lib, stdenv, fetchFromGitHub, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre, withZ3 ? true, z3, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cppcheck"; pname = "cppcheck";
version = "2.7"; version = "2.7.3";
src = fetchurl { src = fetchFromGitHub {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; owner = "danmar";
sha256 = "sha256-rHTAlzxGoFJ2D0/3ymqEYWyleVUQVC0ZWm8SLFMHkpE="; repo = "cppcheck";
rev = version;
sha256 = "0bwk89nkq67nphplb24daxvg75pv9bgh0kcqr2samhpzmjpvzxm5";
}; };
buildInputs = [ pcre ] ++ lib.optionals withZ3 [ z3 ]; buildInputs = [ pcre
(python3.withPackages (ps: [ps.pygments]))
] ++ lib.optionals withZ3 [ z3 ];
nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ]; nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ];
makeFlags = [ "PREFIX=$(out)" "FILESDIR=$(out)/cfg" "HAVE_RULES=yes" ] makeFlags = [ "PREFIX=$(out)" "FILESDIR=$(out)/cfg" "HAVE_RULES=yes" ]
@ -19,6 +23,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
doCheck = true;
postInstall = '' postInstall = ''
make DB2MAN=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl man make DB2MAN=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl man
mkdir -p $man/share/man/man1 mkdir -p $man/share/man/man1