nixpkgs: add 'avy' -- property directed AIGER model checking

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2017-10-16 03:56:08 -05:00
parent 740fb165da
commit e84cec2762
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/avy/CMakeLists.txt b/avy/CMakeLists.txt
index 5913076..b0453b5 100644
--- a/avy/CMakeLists.txt
+++ b/avy/CMakeLists.txt
@@ -23,7 +23,6 @@ if (CUSTOM_BOOST_ROOT)
set (Boost_NO_SYSTEM_PATHS "ON")
endif()
-set (Boost_USE_STATIC_LIBS ON)
find_package (Boost 1.46.1 REQUIRED program_options)
IF (Boost_FOUND)
include_directories (${Boost_INCLUDE_DIRS})

View File

@ -0,0 +1,32 @@
{ stdenv, fetchgit, cmake, zlib, boost }:
stdenv.mkDerivation rec {
name = "avy-${version}";
version = "2017.10.16";
src = fetchgit {
url = "https://bitbucket.org/arieg/extavy";
rev = "c75c83379c38d6ea1046d0caee95aef77283ffe3";
sha256 = "0zcycnypg4q5g710bnkjpycaawmibc092vmyhgfbixkgq9fb5lfh";
fetchSubmodules = true;
};
buildInputs = [ cmake zlib boost.out boost.dev ];
NIX_CFLAGS_COMPILE = [ "-Wno-narrowing" ];
patches =
[ ./0001-no-static-boost-libs.patch
];
installPhase = ''
mkdir -p $out/bin
cp avy/src/{avy,avybmc} $out/bin/
'';
meta = {
description = "AIGER model checking for Property Directed Reachability";
homepage = https://arieg.bitbucket.io/avy/;
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -18682,6 +18682,8 @@ with pkgs;
z3 = callPackage ../applications/science/logic/z3 {};
avy = callPackage ../applications/science/logic/avy {};
boolector = callPackage ../applications/science/logic/boolector {};
symbiyosys = callPackage ../applications/science/logic/symbiyosys {};