2011-10-18 02:18:21 +04:00
|
|
|
{stdenv, fetchurl }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "936";
|
|
|
|
pname = "picosat";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://fmv.jku.at/picosat/${name}.tar.gz";
|
|
|
|
sha256 = "02hq68fmfjs085216wsj13ff6i1rhc652yscl16w9jzpfqzly91n";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
# configureFlags = "--shared"; the ./configure file is broken and doesn't accept this parameter :(
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's/^shared=no/shared=yes/' -i configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p "$out"/bin
|
2011-10-18 02:18:21 +04:00
|
|
|
cp picomus "$out"/bin
|
|
|
|
cp picosat "$out"/bin
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p "$out"/lib
|
2011-10-18 02:18:21 +04:00
|
|
|
cp libpicosat.a "$out"/lib
|
|
|
|
cp libpicosat.so "$out"/lib
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p "$out"/include/picosat
|
2011-10-18 02:18:21 +04:00
|
|
|
cp picosat.h "$out"/include/picosat
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://fmv.jku.at/picosat/;
|
|
|
|
description = "SAT solver with proof and core support";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2011-10-18 02:18:21 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
};
|
|
|
|
}
|