nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #88934 from Flakebi/cppcheck-z3

cppcheck: enable z3 support

authored by

Maximilian Bosch and committed by
GitHub
7fe32a61 0591f1ef

+4 -3
+4 -3
pkgs/development/tools/analysis/cppcheck/default.nix
··· 1 - { stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre }: 1 + { stdenv, fetchurl, libxslt, docbook_xsl, docbook_xml_dtd_45, pcre, withZ3 ? true, z3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "cppcheck"; ··· 9 9 sha256 = "0gssnb50cndr77xva4nar4a82ii0vfqy96dlm27gb7pd6xmd6xsz"; 10 10 }; 11 11 12 - buildInputs = [ pcre ]; 12 + buildInputs = [ pcre ] ++ stdenv.lib.optionals withZ3 [ z3 ]; 13 13 nativeBuildInputs = [ libxslt docbook_xsl docbook_xml_dtd_45 ]; 14 14 15 - makeFlags = [ "PREFIX=$(out)" "FILESDIR=$(out)/cfg" "HAVE_RULES=yes" ]; 15 + makeFlags = [ "PREFIX=$(out)" "FILESDIR=$(out)/cfg" "HAVE_RULES=yes" ] 16 + ++ stdenv.lib.optionals withZ3 [ "USE_Z3=yes" "CPPFLAGS=-DNEW_Z3=1" ]; 16 17 17 18 outputs = [ "out" "man" ]; 18 19