tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
z3 opt
Aistis Raulinaitis
10 years ago
a5a740a1
1da4d8b5
+46
3 changed files
expand all
collapse all
unified
split
lib
maintainers.nix
pkgs
applications
science
logic
z3_opt
default.nix
top-level
all-packages.nix
+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
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
1
+
{ stdenv, fetchFromGitHub, python }:
2
2
+
3
3
+
# Copied shamelessly from the normal z3 .nix
4
4
+
5
5
+
stdenv.mkDerivation rec {
6
6
+
name = "z3_opt-${version}";
7
7
+
version = "4.3.2";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "Z3Prover";
11
11
+
repo = "z3";
12
12
+
rev = "9377779e5818b2ca15c4f39921b2ba3a42f948e7";
13
13
+
sha256 = "15d6hsb61hrm5vy3l2gnkrfnqr68lvspnznm17vyhm61ld33yaff";
14
14
+
};
15
15
+
16
16
+
buildInputs = [ python ];
17
17
+
enableParallelBuilding = true;
18
18
+
19
19
+
configurePhase = "python scripts/mk_make.py --prefix=$out && cd build";
20
20
+
21
21
+
# z3's install phase is stupid because it tries to calculate the
22
22
+
# python package store location itself, meaning it'll attempt to
23
23
+
# write files into the nix store, and fail.
24
24
+
soext = if stdenv.system == "x86_64-darwin" then ".dylib" else ".so";
25
25
+
installPhase = ''
26
26
+
mkdir -p $out/bin $out/lib/${python.libPrefix}/site-packages $out/include
27
27
+
cp ../src/api/z3*.h $out/include
28
28
+
cp ../src/api/c++/z3*.h $out/include
29
29
+
cp z3 $out/bin
30
30
+
cp libz3${soext} $out/lib
31
31
+
cp libz3${soext} $out/lib/${python.libPrefix}/site-packages
32
32
+
cp z3*.pyc $out/lib/${python.libPrefix}/site-packages
33
33
+
cp ../src/api/python/*.py $out/lib/${python.libPrefix}/site-packages
34
34
+
'';
35
35
+
36
36
+
meta = {
37
37
+
description = "A high-performance theorem prover and SMT solver, optimization edition";
38
38
+
homepage = "http://github.com/Z3Prover/z3";
39
39
+
license = stdenv.lib.licenses.mit;
40
40
+
platforms = stdenv.lib.platforms.unix;
41
41
+
maintainers = with stdenv.lib.maintainers; [ thoughtpolice sheganinans ];
42
42
+
};
43
43
+
}
44
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
13771
+
z3_opt = callPackage ../applications/science/logic/z3_opt {};
13771
13772
13772
13773
boolector = boolector15;
13773
13774
boolector15 = callPackage ../applications/science/logic/boolector {};