nixpkgs/pkgs/applications/science/logic/vampire/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, z3, zlib }:
2018-07-05 09:32:41 +02:00
stdenv.mkDerivation rec {
2019-08-25 14:43:51 +02:00
pname = "vampire";
2022-01-01 22:13:11 +01:00
version = "4.6.1";
2018-07-05 09:32:41 +02:00
src = fetchFromGitHub {
owner = "vprover";
repo = "vampire";
2022-01-01 22:13:11 +01:00
rev = "v${version}";
sha256 = "0z71nxjak3ibp842r8iv37w1x3cbkrmjs88lpvxqb4sgrbyk38zd";
2018-07-05 09:32:41 +02:00
};
buildInputs = [ z3 zlib ];
makeFlags = [ "vampire_z3_rel" "CC:=$(CC)" "CXX:=$(CXX)" ];
2018-07-05 09:32:41 +02:00
patches = [
# https://github.com/vprover/vampire/pull/54
(fetchpatch {
name = "fix-apple-cygwin-defines.patch";
url = "https://github.com/vprover/vampire/pull/54.patch";
sha256 = "0i6nrc50wlg1dqxq38lkpx4rmfb3lf7s8f95l4jkvqp0nxa20cza";
})
# https://github.com/vprover/vampire/pull/55
(fetchpatch {
name = "fix-wait-any.patch";
url = "https://github.com/vprover/vampire/pull/55.patch";
sha256 = "1pwfpwpl23bqsgkmmvw6bnniyvp5j9v8l3z9s9pllfabnfcrcz9l";
})
];
2023-03-05 01:21:12 +01:00
postPatch = ''
patch -p1 -i ${../avy/minisat-fenv.patch} -d Minisat || true
'';
2018-07-05 17:13:40 +02:00
enableParallelBuilding = true;
2018-07-05 09:32:41 +02:00
fixupPhase = ''
rm -rf z3
'';
installPhase = ''
install -m0755 -D vampire_z3_rel* $out/bin/vampire
'';
meta = with lib; {
2018-07-05 09:32:41 +02:00
homepage = "https://vprover.github.io/";
description = "The Vampire Theorem Prover";
platforms = platforms.unix;
2022-01-01 22:13:11 +01:00
license = licenses.bsd3;
2018-07-05 09:32:41 +02:00
maintainers = with maintainers; [ gebner ];
};
}