2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, cmake, zlib, boost }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "avy";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2019.05.01"; # date of cav19 tag
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://bitbucket.org/arieg/extavy";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "cav19";
|
|
|
|
sha256 = "0qdzy9srxp5f38x4dbb3prnr9il6cy0kz80avrvd7fxqzy7wdlwy";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib boost.out boost.dev ];
|
2020-04-24 23:36:52 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([ "-Wno-narrowing" ]
|
|
|
|
# Squelch endless stream of warnings on same few things
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optionals stdenv.cc.isClang [
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Wno-empty-body"
|
|
|
|
"-Wno-tautological-compare"
|
|
|
|
"-Wc++11-compat-deprecated-writable-strings"
|
|
|
|
"-Wno-deprecated"
|
|
|
|
]);
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e '1i#include <stdint.h>' abc/src/bdd/dsd/dsd.h
|
|
|
|
substituteInPlace abc/src/bdd/dsd/dsd.h --replace \
|
|
|
|
'((Child = Dsd_NodeReadDec(Node,Index))>=0);' \
|
|
|
|
'((intptr_t)(Child = Dsd_NodeReadDec(Node,Index))>=0);'
|
|
|
|
|
|
|
|
patch -p1 -d minisat -i ${./minisat-fenv.patch}
|
|
|
|
patch -p1 -d glucose -i ${./glucose-fenv.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/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|