cppcheck: code style format update using nixpkgs-fmt

This commit is contained in:
Pol Dellaiera 2023-08-12 11:08:35 +02:00
parent e0a830245b
commit 5088e63daf
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -1,14 +1,14 @@
{ lib
, stdenv
{ docbook_xsl
, docbook_xml_dtd_45
, fetchFromGitHub
, installShellFiles
, pcre
, python3
, lib
, libxslt
, docbook_xsl
, docbook_xml_dtd_45
, which
, pcre
, pkg-config
, python3
, stdenv
, which
}:
stdenv.mkDerivation (finalAttrs: {
@ -23,8 +23,21 @@ stdenv.mkDerivation (finalAttrs: {
};
strictDeps = true;
nativeBuildInputs = [ pkg-config installShellFiles libxslt docbook_xsl docbook_xml_dtd_45 which python3 ];
buildInputs = [ pcre (python3.withPackages (ps: [ps.pygments])) ];
nativeBuildInputs = [
docbook_xsl
docbook_xml_dtd_45
installShellFiles
libxslt
pkg-config
python3
which
];
buildInputs = [
pcre
(python3.withPackages (ps: [ ps.pygments ]))
];
makeFlags = [ "PREFIX=$(out)" "MATCHCOMPILER=yes" "FILESDIR=$(out)/share/cppcheck" "HAVE_RULES=yes" ];
@ -58,15 +71,15 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstallCheck
'';
meta = with lib; {
meta = {
description = "A static analysis tool for C/C++ code";
homepage = "http://cppcheck.sourceforge.net/";
license = lib.licenses.gpl3Plus;
longDescription = ''
Check C/C++ code for memory leaks, mismatching allocation-deallocation,
buffer overruns and more.
'';
homepage = "http://cppcheck.sourceforge.net/";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ joachifm ];
maintainers = with lib.maintainers; [ joachifm ];
platforms = lib.platforms.unix;
};
})