nixpkgs/pkgs/applications/science/logic/stp/default.nix

37 lines
1008 B
Nix
Raw Normal View History

2019-12-29 18:31:33 -08:00
{ stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl
, python3, python3Packages, zlib, minisat, cryptominisat }:
2017-05-14 01:55:19 -07:00
stdenv.mkDerivation rec {
2019-08-26 14:00:48 -07:00
pname = "stp";
version = "2.3.3";
2017-05-14 01:55:19 -07:00
src = fetchFromGitHub {
owner = "stp";
repo = "stp";
2019-08-26 14:00:48 -07:00
rev = version;
sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87";
};
2017-05-14 01:55:19 -07:00
2019-12-29 18:31:33 -08:00
buildInputs = [ boost zlib minisat cryptominisat python3 ];
2017-05-14 01:55:19 -07: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 01:55:19 -07:00
2019-08-26 14:00:48 -07:00
# seems to build fine now, may revert if concurrency does become an issue
enableParallelBuilding = true;
2017-12-05 03:28:04 -08:00
2017-05-14 01:55:19 -07:00
meta = with stdenv.lib; {
description = "Simple Theorem Prover";
maintainers = with maintainers; [ ];
2017-05-14 01:55:19 -07:00
platforms = platforms.linux;
license = licenses.mit;
};
}