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

43 lines
1.2 KiB
Nix
Raw Normal View History

2018-02-14 10:00:41 +00:00
{ stdenv, fetchFromGitHub, python, fixDarwinDylibNames }:
2018-02-14 10:00:41 +00:00
stdenv.mkDerivation rec {
name = "z3-${version}";
2018-10-16 16:42:45 +01:00
version = "4.8.1";
src = fetchFromGitHub {
owner = "Z3Prover";
repo = "z3";
2018-10-16 16:42:45 +01:00
rev = name;
sha256 = "1vr57bwx40sd5riijyrhy70i2wnv9xrdihf6y5zdz56yq88rl48f";
};
2017-01-03 22:08:14 +00:00
buildInputs = [ python fixDarwinDylibNames ];
2018-02-14 10:00:41 +00:00
propagatedBuildInputs = [ python.pkgs.setuptools ];
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
'';
postInstall = ''
mkdir -p $dev $lib $python/lib
mv $out/lib/python* $python/lib/
mv $out/lib $lib/lib
mv $out/include $dev/include
2018-07-14 20:49:47 +01:00
ln -sf $lib/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} $python/${python.sitePackages}/z3/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary}
'';
outputs = [ "out" "lib" "dev" "python" ];
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 ];
};
}