2021-01-17 00:15:33 +00:00
|
|
|
{lib, stdenv, z3, cmake}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "z3-tptp";
|
|
|
|
version = z3.version;
|
|
|
|
|
|
|
|
src = z3.src;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/examples/tptp";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [cmake];
|
|
|
|
buildInputs = [z3];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo 'set(Z3_LIBRARIES "-lz3")' >> CMakeLists.new
|
|
|
|
cat CMakeLists.txt | grep -E 'add_executable|project|link_libraries' >> CMakeLists.new
|
|
|
|
mv CMakeLists.new CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp "z3_tptp5" "$out/bin/"
|
|
|
|
ln -s "z3_tptp5" "$out/bin/z3-tptp"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (z3.meta) license homepage platforms;
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "TPTP wrapper for Z3 prover";
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = [lib.maintainers.raskin];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|