2015-06-14 20:55:08 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2011-10-17 22:18:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-14 20:55:08 +00:00
|
|
|
name = "picosat-${version}";
|
2016-04-02 16:43:32 +00:00
|
|
|
version = "965";
|
2011-10-17 22:18:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://fmv.jku.at/picosat/${name}.tar.gz";
|
2016-04-02 16:43:32 +00:00
|
|
|
sha256 = "0m578rpa5rdn08d10kr4lbsdwp4402hpavrz6n7n53xs517rn5hm";
|
2011-10-17 22:18:21 +00:00
|
|
|
};
|
|
|
|
|
2016-04-02 16:45:47 +00:00
|
|
|
configurePhase = "./configure.sh --shared --trace";
|
2011-10-17 22:18:21 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-06-14 20:55:08 +00:00
|
|
|
mkdir -p $out/bin $out/lib $out/include/picosat
|
2016-04-02 16:45:47 +00:00
|
|
|
cp picomus picomcs picosat picogcnf "$out"/bin
|
2015-06-14 20:55:08 +00:00
|
|
|
|
2011-10-17 22:18:21 +00:00
|
|
|
cp libpicosat.a "$out"/lib
|
|
|
|
cp libpicosat.so "$out"/lib
|
2015-06-14 20:55:08 +00:00
|
|
|
|
2011-10-17 22:18:21 +00:00
|
|
|
cp picosat.h "$out"/include/picosat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SAT solver with proof and core support";
|
2015-06-14 20:55:08 +00:00
|
|
|
homepage = http://fmv.jku.at/picosat/;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ roconnor thoughtpolice ];
|
2011-10-17 22:18:21 +00:00
|
|
|
};
|
|
|
|
}
|