2017-07-07 05:31:38 +01:00
|
|
|
{ stdenv, fetchurl, gmp-static, gperf, autoreconfHook, libpoly }:
|
2014-04-27 19:05:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yices-${version}";
|
2017-11-05 17:36:21 +00:00
|
|
|
version = "2.5.4";
|
2014-04-27 19:05:35 +01:00
|
|
|
|
2015-06-14 20:56:49 +01:00
|
|
|
src = fetchurl {
|
2017-08-27 03:50:45 +01:00
|
|
|
url = "https://github.com/SRI-CSL/yices2/archive/Yices-${version}.tar.gz";
|
2017-07-07 05:31:38 +01:00
|
|
|
name = "${name}-src.tar.gz";
|
2017-11-05 17:36:21 +00:00
|
|
|
sha256 = "1k8wmlddi3zv5kgg6xbch3a0s0xqsmsfc7y6z8zrgcyhswl36h7p";
|
2015-06-14 20:56:49 +01:00
|
|
|
};
|
2014-04-27 19:05:35 +01:00
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2017-11-05 17:36:21 +00: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 19:05:35 +01:00
|
|
|
|
2016-10-26 15:52:29 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-11-05 17:36:21 +00:00
|
|
|
# Usual shenanigans
|
|
|
|
patchPhase = ''patchShebangs tests/regress/check.sh'';
|
|
|
|
|
2017-07-07 05:31:38 +01:00
|
|
|
# Includes a fix for the embedded soname being libyices.so.2.5, but
|
2017-11-05 17:36:21 +00:00
|
|
|
# only installing the libyices.so.2.5.x file.
|
2017-07-07 05:31:38 +01:00
|
|
|
installPhase = ''
|
|
|
|
make install LDCONFIG=true
|
2017-11-05 17:36:21 +00:00
|
|
|
(cd $out/lib && ln -s -f libyices.so.${version} libyices.so.2.5)
|
2017-07-07 05:31:38 +01:00
|
|
|
'';
|
2016-10-26 15:47:50 +01:00
|
|
|
|
2016-10-30 18:34:42 +00:00
|
|
|
meta = with stdenv.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;
|
2016-10-30 18:34:42 +00:00
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
2014-04-27 19:05:35 +01:00
|
|
|
};
|
|
|
|
}
|