nixpkgs/pkgs/applications/science/logic/yices/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, gmp-static, gperf, autoreconfHook }:
stdenv.mkDerivation rec {
name = "yices-${version}";
2016-10-26 14:36:06 +00:00
version = "2.5.1";
src = fetchurl {
2016-10-26 14:36:06 +00:00
url = "http://yices.csl.sri.com/cgi-bin/yices2-newnewdownload.cgi?file=yices-${version}-src.tar.gz&accept=I+Agree";
name = "yices-${version}-src.tar.gz";
2016-10-26 14:36:06 +00:00
sha256 = "1wfq6hcm54h0mqmbs1ip63i0ywlwnciav86sbzk3gafxyzg1nd0c";
};
patchPhase = ''patchShebangs tests/regress/check.sh'';
configureFlags = [ "--with-static-gmp=${gmp-static.out}/lib/libgmp.a"
"--with-static-gmp-include-dir=${gmp-static.dev}/include"
];
buildInputs = [ gmp-static gperf autoreconfHook ];
enableParallelBuilding = true;
doCheck = true;
installPhase = ''make install LDCONFIG=true'';
2016-10-30 18:34:42 +00:00
meta = with stdenv.lib; {
description = "A high-performance theorem prover and SMT solver";
homepage = "http://yices.csl.sri.com";
2016-10-30 18:34:42 +00:00
license = licenses.unfreeRedistributable;
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ maintainers.thoughtpolice ];
};
}