2021-10-12 22:09:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cudd, gmp-static, gperf, autoreconfHook, libpoly }:
|
2014-04-27 19:05:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yices";
|
2021-10-13 17:55:53 +01:00
|
|
|
# We never want X.Y.${odd} versions as they are moving development tags.
|
2022-01-02 09:15:42 +00:00
|
|
|
version = "2.6.4";
|
2014-04-27 19:05:35 +01:00
|
|
|
|
2019-01-08 21:18:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "yices2";
|
|
|
|
rev = "Yices-${version}";
|
2022-01-02 09:15:42 +00:00
|
|
|
sha256 = "sha256-qdxh86CkKdm65oHcRgaafTG9GUOoIgTDjeWmRofIpNE=";
|
2015-06-14 20:56:49 +01:00
|
|
|
};
|
2014-04-27 19:05:35 +01:00
|
|
|
|
2021-10-30 11:53:03 +01:00
|
|
|
patches = [
|
|
|
|
# musl las no ldconfig, create symlinks explicitly
|
|
|
|
./linux-no-ldconfig.patch
|
|
|
|
];
|
|
|
|
postPatch = "patchShebangs tests/regress/check.sh";
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-10-12 22:09:47 +01:00
|
|
|
buildInputs = [ cudd gmp-static gperf libpoly ];
|
2017-11-05 17:36:21 +00:00
|
|
|
configureFlags =
|
|
|
|
[ "--with-static-gmp=${gmp-static.out}/lib/libgmp.a"
|
|
|
|
"--with-static-gmp-include-dir=${gmp-static.dev}/include"
|
|
|
|
"--enable-mcsat"
|
|
|
|
];
|
2014-04-27 19:05:35 +01:00
|
|
|
|
2016-10-26 15:52:29 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2014-04-27 19:05:35 +01:00
|
|
|
homepage = "http://yices.csl.sri.com";
|
2017-09-02 10:06:22 +01:00
|
|
|
license = licenses.gpl3;
|
2017-11-05 17:36:21 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2019-01-08 21:18:45 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2014-04-27 19:05:35 +01:00
|
|
|
};
|
|
|
|
}
|