2016-05-08 14:32:58 +01:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2010-12-05 19:54:27 +00:00
|
|
|
|
2016-05-08 14:32:58 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "minisat-${version}";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://minisat.se/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "023qdnsb6i18yrrawlhckm47q8x0sl7chpvvw3gssfyw3j2pv5cj";
|
2010-12-05 19:54:27 +00:00
|
|
|
};
|
|
|
|
|
2016-12-09 18:46:57 +00:00
|
|
|
patches =
|
|
|
|
[ ./darwin.patch ]
|
|
|
|
++ stdenv.lib.optionals stdenv.cc.isClang [ ./clang.diff ];
|
2016-06-13 12:22:44 +01:00
|
|
|
|
2016-05-08 14:32:58 +01:00
|
|
|
buildInputs = [ zlib ];
|
2010-12-05 19:54:27 +00:00
|
|
|
|
2016-06-13 12:22:44 +01:00
|
|
|
preBuild = "cd simp";
|
2016-05-08 14:32:58 +01:00
|
|
|
makeFlags = [ "r" "MROOT=.." ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp minisat_release $out/bin/minisat
|
|
|
|
'';
|
2014-07-28 10:43:20 +01:00
|
|
|
|
2016-05-08 14:32:58 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Compact and readable SAT solver";
|
|
|
|
maintainers = with maintainers; [ gebner raskin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://minisat.se/;
|
2010-12-05 19:54:27 +00:00
|
|
|
};
|
2016-05-08 14:32:58 +01:00
|
|
|
}
|