boolector: 1.{5,6} -> 2.4.1

This commit is contained in:
Symphorien Gibol 2017-07-18 10:20:34 +02:00 committed by Franz Pletz
parent 2f9f70ba89
commit d7103eadc8
2 changed files with 12 additions and 41 deletions

View File

@ -1,48 +1,23 @@
{ stdenv, fetchurl, zlib, useV16 ? false }: { stdenv, fetchurl }:
let stdenv.mkDerivation rec {
v15 = rec {
name = "boolector-${version}"; name = "boolector-${version}";
version = "1.5.118"; version = "2.4.1";
src = fetchurl { src = fetchurl {
url = "http://fmv.jku.at/boolector/${name}-with-sat-solvers.tar.gz"; url = "http://fmv.jku.at/boolector/boolector-${version}-with-lingeling-bbc.tar.bz2";
sha256 = "17j7q02rryvfwgvglxnhx0kv8hxwy8wbhzawn48lw05i98vxlmk9"; sha256 = "0mdf7hwix237pvknvrpazcx6s3ininj5k7vhysqjqgxa7lxgq045";
}; };
};
v16 = rec {
name = "boolector-${version}";
version = "1.6.0";
src = fetchurl {
url = "http://fmv.jku.at/boolector/${name}-with-sat-solvers.tar.gz";
sha256 = "0jka4r6bc3i24axgdp6qbq6gjadwz9kvi11s2c5sbwmdnjd7cp85";
};
};
boolectorPkg = if useV16 then v16 else v15;
license = with stdenv.lib.licenses; if useV16 then unfreeRedistributable else gpl3;
in
stdenv.mkDerivation (boolectorPkg // {
buildInputs = [
zlib zlib.static (stdenv.lib.getOutput "static" stdenv.cc.libc)
];
enableParallelBuilding = false;
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/lib $out/include mkdir $out
cp boolector/boolector $out/bin mv boolector/bin $out
cp boolector/deltabtor $out/bin
cp boolector/synthebtor $out/bin
cp boolector/libboolector.a $out/lib
cp boolector/boolector.h $out/include
''; '';
meta = { meta = {
inherit license; license = stdenv.lib.licenses.unfreeRedistributable;
description = "An extremely fast SMT solver for bit-vectors and arrays"; description = "An extremely fast SMT solver for bit-vectors and arrays";
homepage = "http://fmv.jku.at/boolector"; homepage = "http://fmv.jku.at/boolector";
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
}; };
}) }

View File

@ -18217,11 +18217,7 @@ with pkgs;
z3 = callPackage ../applications/science/logic/z3 {}; z3 = callPackage ../applications/science/logic/z3 {};
z3_opt = callPackage ../applications/science/logic/z3_opt {}; z3_opt = callPackage ../applications/science/logic/z3_opt {};
boolector = boolector15; boolector = callPackage ../applications/science/logic/boolector {};
boolector15 = callPackage ../applications/science/logic/boolector {};
boolector16 = lowPrio (callPackage ../applications/science/logic/boolector {
useV16 = true;
});
### SCIENCE / ELECTRONICS ### SCIENCE / ELECTRONICS