2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, python3, xxd, boost, fetchpatch }:
|
2017-05-14 09:53:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cryptominisat";
|
2020-07-08 05:51:18 +01:00
|
|
|
version = "5.8.0";
|
2017-05-14 09:53:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-07-24 02:25:27 +01:00
|
|
|
owner = "msoos";
|
|
|
|
repo = "cryptominisat";
|
|
|
|
rev = version;
|
2020-07-08 05:51:18 +01:00
|
|
|
sha256 = "00hmxdlyhn7pwk9jlvc5g0l5z5xqfchjzf5jgn3pkj9xhl8yqq50";
|
2017-05-14 09:53:30 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 21:20:11 +00:00
|
|
|
patches = [
|
2020-07-09 08:21:21 +01:00
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/msoos/cryptominisat/pull/621
|
|
|
|
url = "https://github.com/msoos/cryptominisat/commit/11a97003b0bfbfb61ed6c4e640212110d390c28c.patch";
|
|
|
|
sha256 = "0hdy345bwcbxz0jl1jdxfa6mmfh77s2pz9rnncsr0jzk11b3j0cw";
|
|
|
|
})
|
|
|
|
];
|
2020-07-09 08:11:28 +01:00
|
|
|
|
2019-01-05 15:38:10 +00:00
|
|
|
buildInputs = [ python3 boost ];
|
2019-01-04 10:40:39 +00:00
|
|
|
nativeBuildInputs = [ cmake xxd ];
|
2017-05-14 09:53:30 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 09:53:30 +01:00
|
|
|
description = "An advanced SAT Solver";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/msoos/cryptominisat";
|
2017-07-24 02:25:27 +01:00
|
|
|
license = licenses.mit;
|
2017-05-14 09:53:30 +01:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2017-07-24 02:25:27 +01:00
|
|
|
platforms = platforms.unix;
|
2017-05-14 09:53:30 +01:00
|
|
|
};
|
|
|
|
}
|