From 2e93f93b2af540c419b2a0c00c7bd783bbdfe6ee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 14 Dec 2017 23:31:56 -0800 Subject: [PATCH] z3_4_5_0: New expression, to access the release version's API --- pkgs/applications/science/logic/z3/4.5.0.nix | 31 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 32 insertions(+) create mode 100644 pkgs/applications/science/logic/z3/4.5.0.nix diff --git a/pkgs/applications/science/logic/z3/4.5.0.nix b/pkgs/applications/science/logic/z3/4.5.0.nix new file mode 100644 index 000000000000..827cb2cbe3de --- /dev/null +++ b/pkgs/applications/science/logic/z3/4.5.0.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, python2, fixDarwinDylibNames }: + +let + python = python2; +in stdenv.mkDerivation rec { + name = "z3-${version}"; + version = "4.5.0"; + + src = fetchFromGitHub { + owner = "Z3Prover"; + repo = "z3"; + rev = "z3-4.5.0"; + sha256 = "0ssp190ksak93hiz61z90x6hy9hcw1ywp8b2dzmbhn6fbd4bnxzp"; + }; + + buildInputs = [ python fixDarwinDylibNames ]; + enableParallelBuilding = true; + + 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 = "https://github.com/Z3Prover/z3"; + license = stdenv.lib.licenses.mit; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a035b1e9d30b..c7fd2295b166 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19002,6 +19002,7 @@ with pkgs; gmp-static = gmp.override { withStatic = true; }; }; + z3_4_5_0 = callPackage ../applications/science/logic/z3/4.5.0.nix {}; z3 = callPackage ../applications/science/logic/z3 {}; aiger = callPackage ../applications/science/logic/aiger {};