2016-10-18 16:17:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python2 }:
|
2014-03-08 04:45:15 +00:00
|
|
|
|
2016-10-18 16:17:12 +01:00
|
|
|
let
|
|
|
|
python = python2;
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-03-08 04:45:15 +00:00
|
|
|
name = "z3-${version}";
|
2016-11-08 21:13:56 +00:00
|
|
|
version = "4.5.0";
|
2015-03-27 22:46:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Z3Prover";
|
|
|
|
repo = "z3";
|
2016-01-21 11:52:00 +00:00
|
|
|
rev = "z3-${version}";
|
2016-11-08 21:13:56 +00:00
|
|
|
sha256 = "0ssp190ksak93hiz61z90x6hy9hcw1ywp8b2dzmbhn6fbd4bnxzp";
|
2014-03-08 04:45:15 +00:00
|
|
|
};
|
|
|
|
|
2015-03-27 22:46:35 +00:00
|
|
|
buildInputs = [ python ];
|
2014-03-08 04:45:15 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-11-08 21:13:56 +00:00
|
|
|
configurePhase = ''
|
|
|
|
${python.interpreter} scripts/mk_make.py --prefix=$out --python --pypkgdir=$out/${python.sitePackages}
|
|
|
|
cd build
|
2014-03-08 04:45:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-01-23 16:41:55 +00:00
|
|
|
description = "A high-performance theorem prover and SMT solver";
|
2015-03-27 22:46:35 +00:00
|
|
|
homepage = "http://github.com/Z3Prover/z3";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-03-08 04:45:15 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|