1 { stdenv, lib, fetchFromGitHub
2 , cmake, libedit, gmpxx, bison, flex
3 , enableReadline ? false, readline
7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
12 owner = "usi-verification-and-security";
15 sha256 = "sha256-zhNNnwc41B4sNq50kPub29EYhqV+FoDKRD/CLHnVyZw=";
18 nativeBuildInputs = [ cmake bison flex ];
19 buildInputs = [ libedit gmpxx ]
20 ++ lib.optional enableReadline readline;
23 substituteInPlace test/CMakeLists.txt \
24 --replace 'FetchContent_Populate' '#FetchContent_Populate'
27 "-Dgoogletest_SOURCE_DIR=${gtest.src}"
28 "-Dgoogletest_BINARY_DIR=./gtest-build"
32 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
33 description = "Satisfiability modulo theory (SMT) solver";
34 mainProgram = "opensmt";
35 maintainers = [ maintainers.raskin ];
36 platforms = platforms.linux;
37 license = if enableReadline then licenses.gpl2Plus else licenses.mit;
38 homepage = "https://github.com/usi-verification-and-security/opensmt";