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

37 lines
1,008 B
Nix
Raw Normal View History

2019-12-30 02:31:33 +00:00
{ stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl
, python3, python3Packages, zlib, minisat, cryptominisat }:
2017-05-14 09:55:19 +01:00
stdenv.mkDerivation rec {
2019-08-26 22:00:48 +01:00
pname = "stp";
version = "2.3.3";
2017-05-14 09:55:19 +01:00
src = fetchFromGitHub {
owner = "stp";
repo = "stp";
2019-08-26 22:00:48 +01:00
rev = version;
sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87";
};
2017-05-14 09:55:19 +01:00
2019-12-30 02:31:33 +00:00
buildInputs = [ boost zlib minisat cryptominisat python3 ];
2017-05-14 09:55:19 +01:00
nativeBuildInputs = [ cmake bison flex perl ];
preConfigure = ''
python_install_dir=$out/${python3Packages.python.sitePackages}
mkdir -p $python_install_dir
cmakeFlagsArray=(
$cmakeFlagsArray
"-DBUILD_SHARED_LIBS=ON"
"-DPYTHON_LIB_INSTALL_DIR=$python_install_dir"
)
'';
2017-05-14 09:55:19 +01:00
2019-08-26 22:00:48 +01:00
# seems to build fine now, may revert if concurrency does become an issue
enableParallelBuilding = true;
2017-12-05 11:28:04 +00:00
2017-05-14 09:55:19 +01:00
meta = with stdenv.lib; {
description = "Simple Theorem Prover";
maintainers = with maintainers; [ ];
2017-05-14 09:55:19 +01:00
platforms = platforms.linux;
license = licenses.mit;
};
}