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:
@@ -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)
|
||||
Reference in New Issue
Block a user