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

34 lines
896 B
Nix
Raw Normal View History

{ lib, stdenv, cmake, boost, bison, flex, fetchFromGitHub, perl
2019-12-30 03:31:33 +01:00
, python3, python3Packages, zlib, minisat, cryptominisat }:
2017-05-14 10:55:19 +02:00
stdenv.mkDerivation rec {
2019-08-26 23:00:48 +02:00
pname = "stp";
version = "2.3.3";
2017-05-14 10:55:19 +02:00
src = fetchFromGitHub {
owner = "stp";
repo = "stp";
2019-08-26 23:00:48 +02:00
rev = version;
sha256 = "1yg2v4wmswh1sigk47drwsxyayr472mf4i47lqmlcgn9hhbx1q87";
};
2017-05-14 10:55:19 +02:00
2019-12-30 03:31:33 +01:00
buildInputs = [ boost zlib minisat cryptominisat python3 ];
2017-05-14 10:55:19 +02: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 10:55:19 +02:00
meta = with lib; {
2017-05-14 10:55:19 +02:00
description = "Simple Theorem Prover";
maintainers = with maintainers; [ ];
2017-05-14 10:55:19 +02:00
platforms = platforms.linux;
license = licenses.mit;
};
}