2019-01-08 13:18:45 -08:00
|
|
|
{ stdenv, fetchFromGitHub, gmp-static, gperf, autoreconfHook, libpoly }:
|
2014-04-27 11:05:35 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "yices";
|
2018-11-02 15:49:09 -07:00
|
|
|
version = "2.6.1";
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2019-01-08 13:18:45 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SRI-CSL";
|
|
|
|
repo = "yices2";
|
|
|
|
rev = "Yices-${version}";
|
|
|
|
sha256 = "04vf468spsh00jh7gj94cjnq8kjyfwy9l6r4z7l2pm0zgwkqgyhm";
|
2015-06-14 12:56:49 -07:00
|
|
|
};
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2017-11-05 09:36:21 -08:00
|
|
|
buildInputs = [ gmp-static gperf libpoly ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-static-gmp=${gmp-static.out}/lib/libgmp.a"
|
|
|
|
"--with-static-gmp-include-dir=${gmp-static.dev}/include"
|
|
|
|
"--enable-mcsat"
|
|
|
|
];
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2016-10-26 07:52:29 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-11-05 09:36:21 -08:00
|
|
|
# Usual shenanigans
|
|
|
|
patchPhase = ''patchShebangs tests/regress/check.sh'';
|
|
|
|
|
2017-07-06 21:31:38 -07:00
|
|
|
# Includes a fix for the embedded soname being libyices.so.2.5, but
|
2017-11-05 09:36:21 -08:00
|
|
|
# only installing the libyices.so.2.5.x file.
|
2018-07-12 16:46:28 -07:00
|
|
|
installPhase = let
|
2018-07-12 17:11:06 -07:00
|
|
|
ver_XdotY = builtins.concatStringsSep "." (stdenv.lib.take 2 (stdenv.lib.splitString "." version));
|
2018-07-12 16:46:28 -07:00
|
|
|
in ''
|
2017-07-06 21:31:38 -07:00
|
|
|
make install LDCONFIG=true
|
2018-07-12 16:52:10 -07:00
|
|
|
ln -sfr $out/lib/libyices.so.{${version},${ver_XdotY}}
|
2017-07-06 21:31:38 -07:00
|
|
|
'';
|
2016-10-26 07:47:50 -07:00
|
|
|
|
2016-10-30 11:34:42 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 08:05:14 -07:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2014-04-27 11:05:35 -07:00
|
|
|
homepage = "http://yices.csl.sri.com";
|
2017-09-02 02:06:22 -07:00
|
|
|
license = licenses.gpl3;
|
2017-11-05 09:36:21 -08:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2019-01-08 13:18:45 -08:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2014-04-27 11:05:35 -07:00
|
|
|
};
|
|
|
|
}
|