1 {lib, stdenv, z3, cmake}:
2 stdenv.mkDerivation rec {
8 sourceRoot = "${src.name}/examples/tptp";
10 nativeBuildInputs = [cmake];
14 echo 'set(Z3_LIBRARIES "-lz3")' >> CMakeLists.new
15 cat CMakeLists.txt | grep -E 'add_executable|project|link_libraries' >> CMakeLists.new
16 mv CMakeLists.new CMakeLists.txt
21 cp "z3_tptp5" "$out/bin/"
22 ln -s "z3_tptp5" "$out/bin/z3-tptp"
26 inherit (z3.meta) license homepage platforms;
27 description = "TPTP wrapper for Z3 prover";
28 maintainers = [lib.maintainers.raskin];