2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, z3, zlib }:
|
2018-07-05 08:32:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-25 13:43:51 +01:00
|
|
|
pname = "vampire";
|
2020-08-17 18:39:32 +01:00
|
|
|
version = "4.5.1";
|
2018-07-05 08:32:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vprover";
|
|
|
|
repo = "vampire";
|
|
|
|
rev = version;
|
2020-08-17 18:39:32 +01:00
|
|
|
sha256 = "0q9gqyq96amdnhxgwjyv0r2sxakikp3jvmizgj2h0spfz643p8db";
|
2018-07-05 08:32:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ z3 zlib ];
|
|
|
|
|
2018-07-05 13:27:58 +01:00
|
|
|
makeFlags = [ "vampire_z3_rel" "CC:=$(CC)" "CXX:=$(CXX)" ];
|
2018-07-05 08:32:41 +01:00
|
|
|
|
2018-07-05 13:34:10 +01:00
|
|
|
patches = [
|
|
|
|
# https://github.com/vprover/vampire/pull/54
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-apple-cygwin-defines.patch";
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/vprover/vampire/pull/54.patch";
|
2018-07-05 13:34:10 +01:00
|
|
|
sha256 = "0i6nrc50wlg1dqxq38lkpx4rmfb3lf7s8f95l4jkvqp0nxa20cza";
|
|
|
|
})
|
|
|
|
# https://github.com/vprover/vampire/pull/55
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-wait-any.patch";
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/vprover/vampire/pull/55.patch";
|
2018-07-05 13:34:10 +01:00
|
|
|
sha256 = "1pwfpwpl23bqsgkmmvw6bnniyvp5j9v8l3z9s9pllfabnfcrcz9l";
|
|
|
|
})
|
|
|
|
# https://github.com/vprover/vampire/pull/56
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fenv.patch";
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/vprover/vampire/pull/56.patch";
|
2018-07-05 13:34:10 +01:00
|
|
|
sha256 = "0xl3jcyqmk146mg3qj5hdd0pbja6wbq3250zmfhbxqrjh40mm40g";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-07-05 16:13:40 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-07-05 08:32:41 +01:00
|
|
|
fixupPhase = ''
|
|
|
|
rm -rf z3
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m0755 -D vampire_z3_rel* $out/bin/vampire
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-05 08:32:41 +01:00
|
|
|
homepage = "https://vprover.github.io/";
|
|
|
|
description = "The Vampire Theorem Prover";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|