2017-07-06 21:31:38 -07:00
|
|
|
{ stdenv, fetchurl, gmp-static, gperf, autoreconfHook, libpoly }:
|
2014-04-27 11:05:35 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yices-${version}";
|
2017-08-26 19:50:45 -07:00
|
|
|
version = "2.5.3";
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2015-06-14 12:56:49 -07:00
|
|
|
src = fetchurl {
|
2017-08-26 19:50:45 -07:00
|
|
|
url = "https://github.com/SRI-CSL/yices2/archive/Yices-${version}.tar.gz";
|
2017-07-06 21:31:38 -07:00
|
|
|
name = "${name}-src.tar.gz";
|
2017-08-26 19:50:45 -07:00
|
|
|
sha256 = "0a3zzbvmgyiljzqn6xmc037gismm779p696jywk09j2pqbvp52ac";
|
2015-06-14 12:56:49 -07:00
|
|
|
};
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2016-10-26 07:52:29 -07:00
|
|
|
patchPhase = ''patchShebangs tests/regress/check.sh'';
|
|
|
|
|
2015-10-28 03:48:50 -07:00
|
|
|
configureFlags = [ "--with-static-gmp=${gmp-static.out}/lib/libgmp.a"
|
|
|
|
"--with-static-gmp-include-dir=${gmp-static.dev}/include"
|
2017-07-06 21:31:38 -07:00
|
|
|
"--enable-mcsat"
|
2015-06-14 12:56:49 -07:00
|
|
|
];
|
2017-07-06 21:31:38 -07:00
|
|
|
buildInputs = [ gmp-static gperf autoreconfHook libpoly ];
|
2014-04-27 11:05:35 -07:00
|
|
|
|
2016-10-26 07:52:29 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-07-06 21:31:38 -07:00
|
|
|
# Includes a fix for the embedded soname being libyices.so.2.5, but
|
|
|
|
# only installing the libyices.so.2.5.1 file.
|
|
|
|
installPhase = ''
|
|
|
|
make install LDCONFIG=true
|
2017-08-26 19:50:45 -07:00
|
|
|
(cd $out/lib && ln -s -f libyices.so.2.5.3 libyices.so.2.5)
|
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";
|
2016-10-30 11:34:42 -07:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
2014-04-27 11:05:35 -07:00
|
|
|
};
|
|
|
|
}
|