2015-06-14 23:55:08 +03:00
|
|
|
{ stdenv, fetchurl }:
|
2011-10-18 02:18:21 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-14 23:55:08 +03:00
|
|
|
name = "picosat-${version}";
|
2016-04-02 19:43:32 +03:00
|
|
|
version = "965";
|
2011-10-18 02:18:21 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://fmv.jku.at/picosat/${name}.tar.gz";
|
2016-04-02 19:43:32 +03:00
|
|
|
sha256 = "0m578rpa5rdn08d10kr4lbsdwp4402hpavrz6n7n53xs517rn5hm";
|
2011-10-18 02:18:21 +04:00
|
|
|
};
|
|
|
|
|
2016-04-02 19:45:47 +03:00
|
|
|
configurePhase = "./configure.sh --shared --trace";
|
2011-10-18 02:18:21 +04:00
|
|
|
|
|
|
|
installPhase = ''
|
2017-10-16 13:12:18 +03:00
|
|
|
mkdir -p $out/bin $out/lib $out/share $out/include/picosat
|
2016-04-02 19:45:47 +03:00
|
|
|
cp picomus picomcs picosat picogcnf "$out"/bin
|
2015-06-14 23:55:08 +03:00
|
|
|
|
2017-10-16 13:12:18 +03:00
|
|
|
cp VERSION "$out"/share/picosat.version
|
|
|
|
cp picosat.o "$out"/lib
|
2011-10-18 02:18:21 +04:00
|
|
|
cp libpicosat.a "$out"/lib
|
|
|
|
cp libpicosat.so "$out"/lib
|
2015-06-14 23:55:08 +03:00
|
|
|
|
2011-10-18 02:18:21 +04:00
|
|
|
cp picosat.h "$out"/include/picosat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SAT solver with proof and core support";
|
2015-06-14 23:55:08 +03: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-18 02:18:21 +04:00
|
|
|
};
|
|
|
|
}
|