2022-11-11T09:39:36 cbmc 5.69.1 -> 5.70.0 https://repology.org/metapackage/cbmc/versions 2022-11-11T09:39:38 attrpath: cbmc 2022-11-11T09:39:38 Checking auto update branch... 2022-11-11T09:39:38 An auto update branch exists with message `cbmc: 5.69.1 -> 5.70.0`. New version is 5.70.0. 2022-11-11T09:39:38 An auto update branch exists with an equal or greater version 2022-11-11T20:17:48 cbmc 5.69.1 -> 5.70.0 https://github.com/diffblue/cbmc/releases 2022-11-11T20:17:51 attrpath: cbmc 2022-11-11T20:17:51 Checking auto update branch... 2022-11-11T20:17:51 No auto update branch exists 2022-11-11T20:17:51 Old version 5.69.1" not present in master derivation file with contents: { lib , stdenv , fetchFromGitHub , testers , bison , cadical , cbmc , cmake , flex , makeWrapper , perl }: stdenv.mkDerivation rec { pname = "cbmc"; version = "5.70.0"; src = fetchFromGitHub { owner = "diffblue"; repo = pname; rev = "${pname}-${version}"; sha256 = "sha256-fzc/WrHo+B9oscnTqN8nETcKc34aq4fUX8VLpYJUvRY="; }; nativeBuildInputs = [ bison cmake flex perl makeWrapper ]; buildInputs = [ cadical ]; # do not download sources # link existing cadical instead patches = [ ./0001-Do-not-download-sources-in-cmake.patch ]; postPatch = '' # do not hardcode gcc substituteInPlace "scripts/bash-autocomplete/extract_switches.sh" \ --replace "gcc" "$CC" \ --replace "g++" "$CXX" # fix library_check.sh interpreter error patchShebangs . '' + lib.optionalString (!stdenv.cc.isGNU) '' # goto-gcc rely on gcc substituteInPlace "regression/CMakeLists.txt" \ --replace "add_subdirectory(goto-gcc)" "" ''; postInstall = '' # goto-cc expects ls_parse.py in PATH mkdir -p $out/share/cbmc mv $out/bin/ls_parse.py $out/share/cbmc/ls_parse.py chmod +x $out/share/cbmc/ls_parse.py wrapProgram $out/bin/goto-cc \ --prefix PATH : "$out/share/cbmc" \ ''; # fix "argument unused during compilation" NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument"; # TODO: add jbmc support cmakeFlags = [ "-DWITH_JBMC=OFF" "-Dsat_impl=cadical" "-Dcadical_INCLUDE_DIR=${cadical.dev}/include" ]; passthru.tests.version = testers.testVersion { package = cbmc; command = "cbmc --version"; }; meta = with lib; { description = "CBMC is a Bounded Model Checker for C and C++ programs"; homepage = "http://www.cprover.org/cbmc/"; license = licenses.bsdOriginal; maintainers = with maintainers; [ jiegec ]; platforms = platforms.unix; }; }