2017-10-16 10:56:08 +02:00
|
|
|
{ stdenv, fetchgit, cmake, zlib, boost }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "avy";
|
2017-10-16 10:56:08 +02:00
|
|
|
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 ];
|
2019-10-30 01:40:49 +01:00
|
|
|
NIX_CFLAGS_COMPILE = toString ([ "-Wno-narrowing" ]
|
2017-10-18 04:08:48 +02:00
|
|
|
# Squelch endless stream of warnings on same few things
|
|
|
|
++ stdenv.lib.optionals stdenv.cc.isClang [
|
|
|
|
"-Wno-empty-body"
|
|
|
|
"-Wno-tautological-compare"
|
|
|
|
"-Wc++11-compat-deprecated-writable-strings"
|
|
|
|
"-Wno-deprecated"
|
2019-10-30 01:40:49 +01:00
|
|
|
]);
|
2017-10-18 04:08:48 +02:00
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
2017-10-16 10:56:08 +02:00
|
|
|
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;
|
2018-12-10 00:03:07 +01:00
|
|
|
# See pkgs/applications/science/logic/glucose/default.nix
|
|
|
|
# (The error is different due to glucose-fenv.patch, but the same)
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2017-10-16 10:56:08 +02:00
|
|
|
};
|
|
|
|
}
|