z3 opt

+46
+1
lib/maintainers.nix
··· 184 184 schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>"; 185 185 schristo = "Scott Christopher <schristopher@konputa.com>"; 186 186 sepi = "Raffael Mancini <raffael@mancini.lu>"; 187 + sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>"; 187 188 shell = "Shell Turner <cam.turn@gmail.com>"; 188 189 shlevy = "Shea Levy <shea@shealevy.com>"; 189 190 simons = "Peter Simons <simons@cryp.to>";
+44
pkgs/applications/science/logic/z3_opt/default.nix
··· 1 + { stdenv, fetchFromGitHub, python }: 2 + 3 + # Copied shamelessly from the normal z3 .nix 4 + 5 + stdenv.mkDerivation rec { 6 + name = "z3_opt-${version}"; 7 + version = "4.3.2"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "Z3Prover"; 11 + repo = "z3"; 12 + rev = "9377779e5818b2ca15c4f39921b2ba3a42f948e7"; 13 + sha256 = "15d6hsb61hrm5vy3l2gnkrfnqr68lvspnznm17vyhm61ld33yaff"; 14 + }; 15 + 16 + buildInputs = [ python ]; 17 + enableParallelBuilding = true; 18 + 19 + configurePhase = "python scripts/mk_make.py --prefix=$out && cd build"; 20 + 21 + # z3's install phase is stupid because it tries to calculate the 22 + # python package store location itself, meaning it'll attempt to 23 + # write files into the nix store, and fail. 24 + soext = if stdenv.system == "x86_64-darwin" then ".dylib" else ".so"; 25 + installPhase = '' 26 + mkdir -p $out/bin $out/lib/${python.libPrefix}/site-packages $out/include 27 + cp ../src/api/z3*.h $out/include 28 + cp ../src/api/c++/z3*.h $out/include 29 + cp z3 $out/bin 30 + cp libz3${soext} $out/lib 31 + cp libz3${soext} $out/lib/${python.libPrefix}/site-packages 32 + cp z3*.pyc $out/lib/${python.libPrefix}/site-packages 33 + cp ../src/api/python/*.py $out/lib/${python.libPrefix}/site-packages 34 + ''; 35 + 36 + meta = { 37 + description = "A high-performance theorem prover and SMT solver, optimization edition"; 38 + homepage = "http://github.com/Z3Prover/z3"; 39 + license = stdenv.lib.licenses.mit; 40 + platforms = stdenv.lib.platforms.unix; 41 + maintainers = with stdenv.lib.maintainers; [ thoughtpolice sheganinans ]; 42 + }; 43 + } 44 +
+1
pkgs/top-level/all-packages.nix
··· 13768 13768 yices = callPackage ../applications/science/logic/yices {}; 13769 13769 13770 13770 z3 = callPackage ../applications/science/logic/z3 {}; 13771 + z3_opt = callPackage ../applications/science/logic/z3_opt {}; 13771 13772 13772 13773 boolector = boolector15; 13773 13774 boolector15 = callPackage ../applications/science/logic/boolector {};