3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/logic/z3/default.nix

32 lines
813 B
Nix
Raw Normal View History

2016-10-18 16:17:12 +01:00
{ stdenv, fetchFromGitHub, python2 }:
2016-10-18 16:17:12 +01:00
let
python = python2;
in stdenv.mkDerivation rec {
name = "z3-${version}";
2016-11-08 21:13:56 +00:00
version = "4.5.0";
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";
};
buildInputs = [ python ];
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
'';
meta = {
description = "A high-performance theorem prover and SMT solver";
homepage = "http://github.com/Z3Prover/z3";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}