2017-07-07 06:31:38 +02:00
|
|
|
{ stdenv, fetchurl, gmp-static, gperf, autoreconfHook, libpoly }:
|
2014-04-27 20:05:35 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yices-${version}";
|
2018-07-11 05:11:17 +02:00
|
|
|
version = "2.6.0";
|
2014-04-27 20:05:35 +02:00
|
|
|
|
2015-06-14 21:56:49 +02:00
|
|
|
src = fetchurl {
|
2017-08-27 04:50:45 +02:00
|
|
|
url = "https://github.com/SRI-CSL/yices2/archive/Yices-${version}.tar.gz";
|
2017-07-07 06:31:38 +02:00
|
|
|
name = "${name}-src.tar.gz";
|
2018-07-11 05:11:17 +02:00
|
|
|
sha256 = "10ikq7ib8jhx7hlxfm6mp5qg6r8dflqs8242q5zaicn80qixpm12";
|
2015-06-14 21:56:49 +02:00
|
|
|
};
|
2014-04-27 20:05:35 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2017-11-05 18:36:21 +01: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 20:05:35 +02:00
|
|
|
|
2016-10-26 16:52:29 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-11-05 18:36:21 +01:00
|
|
|
# Usual shenanigans
|
|
|
|
patchPhase = ''patchShebangs tests/regress/check.sh'';
|
|
|
|
|
2017-07-07 06:31:38 +02:00
|
|
|
# Includes a fix for the embedded soname being libyices.so.2.5, but
|
2017-11-05 18:36:21 +01:00
|
|
|
# only installing the libyices.so.2.5.x file.
|
2018-07-13 01:46:28 +02:00
|
|
|
installPhase = let
|
|
|
|
ver_XdotY = builtins.concatStringsSep "." (stdenv.lib.take 2 (builtins.splitVersion version));
|
|
|
|
in ''
|
2017-07-07 06:31:38 +02:00
|
|
|
make install LDCONFIG=true
|
2018-07-13 01:46:28 +02:00
|
|
|
(cd $out/lib && ln -s -f libyices.so.${version} libyices.so.${ver_XdotY}
|
2017-07-07 06:31:38 +02:00
|
|
|
'';
|
2016-10-26 16:47:50 +02:00
|
|
|
|
2016-10-30 19:34:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2014-04-27 20:05:35 +02:00
|
|
|
homepage = "http://yices.csl.sri.com";
|
2017-09-02 11:06:22 +02:00
|
|
|
license = licenses.gpl3;
|
2017-11-05 18:36:21 +01:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-10-30 19:34:42 +01:00
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
2014-04-27 20:05:35 +02:00
|
|
|
};
|
|
|
|
}
|