2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, z3, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vampire";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "4.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vprover";
|
|
|
|
repo = "vampire";
|
2022-01-03 16:56:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0z71nxjak3ibp842r8iv37w1x3cbkrmjs88lpvxqb4sgrbyk38zd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ z3 zlib ];
|
|
|
|
|
|
|
|
makeFlags = [ "vampire_z3_rel" "CC:=$(CC)" "CXX:=$(CXX)" ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# https://github.com/vprover/vampire/pull/54
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-apple-cygwin-defines.patch";
|
2023-11-16 04:20:00 +00:00
|
|
|
url = "https://github.com/vprover/vampire/commit/b4bddd3bcac6a7688742da75c369b7b3213f6d1c.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0i6nrc50wlg1dqxq38lkpx4rmfb3lf7s8f95l4jkvqp0nxa20cza";
|
|
|
|
})
|
|
|
|
# https://github.com/vprover/vampire/pull/55
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-wait-any.patch";
|
2023-11-16 04:20:00 +00:00
|
|
|
url = "https://github.com/vprover/vampire/commit/6da10eabb333aec54cdf13833ea33cb851159543.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1pwfpwpl23bqsgkmmvw6bnniyvp5j9v8l3z9s9pllfabnfcrcz9l";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
patch -p1 -i ${../avy/minisat-fenv.patch} -d Minisat || true
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
rm -rf z3
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m0755 -D vampire_z3_rel* $out/bin/vampire
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://vprover.github.io/";
|
|
|
|
description = "The Vampire Theorem Prover";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vampire";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|