isabelle: fix vampire build

* Add install to Cmake now that latest version has it
* Add move because isabelle needs the binary to be 'vampire'
* Add flag to ignore search for Z3, it doesn't work and isn't required
* Change build to only use gcc14 on linux, on darwin clang21 is fine
This commit is contained in:
sempiternal-aurora
2026-01-26 21:21:11 +08:00
parent 093b9087dc
commit 28b2a1e025
2 changed files with 23 additions and 2 deletions
+12 -2
View File
@@ -50,7 +50,8 @@ let
# Isabelle uses a branch of vampire that is not in the normal release line
# that adds support for higher order goals
vampire' = (vampire.override { stdenv = gcc14Stdenv; }).overrideAttrs (_: {
vampireStdenv = if stdenv.hostPlatform.isLinux then gcc14Stdenv else stdenv;
vampire' = (vampire.override { stdenv = vampireStdenv; }).overrideAttrs (_: {
pname = "vampire-for-isabelle";
version = "4.8";
@@ -61,7 +62,16 @@ let
hash = "sha256-CmppaGa4M9tkE1b25cY1LSPFygJy5yV4kpHKbPqvcVE=";
};
cmakeFlags = [ (lib.cmakeFeature "CMAKE_BUILD_HOL" "On") ];
patches = [ ./vampire-add-install-directive.patch ];
postInstall = ''
mv $out/bin/vampire_rel $out/bin/vampire
'';
cmakeFlags = [
(lib.cmakeFeature "CMAKE_BUILD_HOL" "On")
(lib.cmakeFeature "CMAKE_DISABLE_FIND_PACKAGE_Z3" "On")
];
});
sha1 = stdenv.mkDerivation {
@@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -997,6 +997,8 @@ set_target_properties(vampire PROPERTIES
)
configure_file(version.cpp.in version.cpp)
+install(TARGETS vampire)
+
if(CMAKE_BUILD_TYPE STREQUAL Release AND IPO)
message(STATUS "compiling Vampire with IPO: this might take a while")
set_property(TARGET obj PROPERTY INTERPROCEDURAL_OPTIMIZATION true)