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

31 lines
898 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, cmake, python, xxd }:
2017-05-14 08:53:30 +00:00
stdenv.mkDerivation rec {
name = "cryptominisat-${version}";
version = "5.0.1";
src = fetchFromGitHub {
owner = "msoos";
repo = "cryptominisat";
rev = version;
2017-05-14 08:53:30 +00:00
sha256 = "0cpw5d9vplxvv3aaplhnga55gz1hy29p7s4pkw1306knkbhlzvkb";
};
buildInputs = [ python xxd ];
2017-05-14 08:53:30 +00:00
nativeBuildInputs = [ cmake ];
patches = [(fetchpatch rec {
name = "fix-exported-library-name.patch";
url = "https://github.com/msoos/cryptominisat/commit/7a47795cbe5ad5a899731102d297f234bcade077.patch";
sha256 = "11hf3cfqs4cykn7rlgjglq29lzqfxvlm0f20qasi0kdrz01cr30f";
})];
meta = with stdenv.lib; {
description = "An advanced SAT Solver";
homepage = https://github.com/msoos/cryptominisat;
license = licenses.mit;
2017-05-14 08:53:30 +00:00
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;
2017-05-14 08:53:30 +00:00
};
}