-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from pq-code-package/update-bitwuzla
Update bitwuzla -> 0.6.0 & Z3 -> 4.13.3
- Loading branch information
Showing
5 changed files
with
186 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{ cbmc | ||
{ buildEnv | ||
, cbmc | ||
, fetchFromGitHub | ||
, callPackage | ||
, z3_4_12 | ||
, bitwuzla | ||
, ninja | ||
, cadical | ||
}: | ||
builtins.attrValues { | ||
cbmc = cbmc.overrideAttrs (old: rec { | ||
version = "6.3.1"; # remember to adjust this in ../flake.nix too | ||
src = fetchFromGitHub { | ||
owner = "diffblue"; | ||
repo = old.pname; | ||
rev = "${old.pname}-${version}"; | ||
hash = "sha256-y3avPsVxtxSV+WB8TBbvnaNZ4WZltGRTcD+GPwTlp2E="; | ||
}; | ||
patches = [ | ||
./0001-Do-not-download-sources-in-cmake.patch | ||
]; | ||
}); | ||
litani = callPackage ./litani.nix { }; # 1.29.0 | ||
cbmc-viewer = callPackage ./cbmc-viewer.nix { }; # 3.9 | ||
|
||
inherit | ||
ninja# 1.11.1 | ||
z3_4_12# 4.12.5 | ||
bitwuzla; # 0.4.0 | ||
buildEnv { | ||
name = "pqcp-cbmc"; | ||
paths = | ||
builtins.attrValues { | ||
cbmc = cbmc.overrideAttrs (old: rec { | ||
version = "6.3.1"; # remember to adjust this in ../flake.nix too | ||
src = fetchFromGitHub { | ||
owner = "diffblue"; | ||
repo = old.pname; | ||
rev = "${old.pname}-${version}"; | ||
hash = "sha256-y3avPsVxtxSV+WB8TBbvnaNZ4WZltGRTcD+GPwTlp2E="; | ||
}; | ||
patches = [ | ||
./0001-Do-not-download-sources-in-cmake.patch | ||
]; | ||
}); | ||
litani = callPackage ./litani.nix { }; # 1.29.0 | ||
cbmc-viewer = callPackage ./cbmc-viewer.nix { }; # 3.9 | ||
|
||
z3 = callPackage ./z3.nix { | ||
version = "4.13.3"; | ||
sha256 = "sha256-odwalnF00SI+sJGHdIIv4KapFcfVVKiQ22HFhXYtSvA="; | ||
}; | ||
|
||
inherit | ||
cadical#1.9.5 | ||
bitwuzla# 0.6.0 | ||
ninja; # 1.11.1 | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# SPDX-License-Identifier: MIT | ||
|
||
{ version | ||
, sha256 | ||
, fetchFromGitHub | ||
, fixDarwinDylibNames | ||
, lib | ||
, stdenv | ||
, python3Packages | ||
, llvmPackages | ||
}: | ||
stdenv.mkDerivation rec { | ||
inherit version sha256; | ||
pname = "z3"; | ||
src = fetchFromGitHub { | ||
inherit sha256; | ||
owner = "Z3Prover"; | ||
repo = "z3"; | ||
rev = "z3-${version}"; | ||
}; | ||
|
||
nativeBuildInputs = [ python3Packages.python ] | ||
++ lib.optional stdenv.hostPlatform.isLinux llvmPackages.libcxxClang | ||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; | ||
|
||
enableParallelBuilding = true; | ||
|
||
configurePhase = '' | ||
python scripts/mk_make.py --prefix=$out | ||
cd build | ||
''; | ||
|
||
checkPhase = '' | ||
make test | ||
./test-z3 -a | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $dev $lib | ||
mv $out/lib $lib/lib | ||
mv $out/include $dev/include | ||
''; | ||
|
||
outputs = [ "out" "lib" "dev" ]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters