Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #7665 from joachifm/cppcheck

cppcheck: 1.68 -> 1.69

+18 -12
+18 -12
pkgs/development/tools/analysis/cppcheck/default.nix
··· 1 - { stdenv, fetchurl }: 2 - 3 - # TODO: add support for "make man" 1 + { stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45 }: 4 2 5 3 let 6 4 name = "cppcheck"; 7 - version = "1.68"; 5 + version = "1.69"; 8 6 in 9 7 stdenv.mkDerivation { 10 8 name = "${name}-${version}"; 11 9 12 10 src = fetchurl { 13 11 url = "mirror://sourceforge/${name}/${name}-${version}.tar.bz2"; 14 - sha256 = "1ca9fdhrrxfyzd6kn67gxbfszp70191cf3ndasrh5jh55ghybmmd"; 12 + sha256 = "0bjkqy4c6ph6nzparcnbxrdn52i3hiind4jc99v2kvsq281wimab"; 15 13 }; 16 14 17 - configurePhase = '' 18 - makeFlags="PREFIX=$out CFGDIR=$out/cfg" 19 - ''; 15 + buildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ]; 20 16 21 - postInstall = "cp -r cfg $out/cfg"; 17 + makeFlags = ''PREFIX=$(out) CFGDIR=$(out)/cfg''; 18 + 19 + postInstall = '' 20 + make DB2MAN=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl man 21 + mkdir -p $out/share/man/man1 22 + cp cppcheck.1 $out/share/man/man1/cppcheck.1 23 + ''; 22 24 23 25 meta = { 24 - description = "Check C/C++ code for memory leaks, mismatching allocation-deallocation, buffer overrun and more"; 25 - homepage = "http://sourceforge.net/apps/mediawiki/cppcheck/"; 26 - license = "GPL"; 26 + description = "A static analysis tool for C/C++ code"; 27 + longDescription = '' 28 + Check C/C++ code for memory leaks, mismatching 29 + allocation-deallocation, buffer overruns and more. 30 + ''; 31 + homepage = http://cppcheck.sourceforge.net/; 32 + license = stdenv.lib.licenses.gpl3Plus; 27 33 platforms = stdenv.lib.platforms.unix; 28 34 maintainers = [ stdenv.lib.maintainers.simons ]; 29 35 };