@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, zlib, boost, glucose }:
2+stdenv.mkDerivation rec {
3+ name = "aspino-2016-01-31";
4+
5+ src = fetchFromGitHub {
6+ owner = "alviano";
7+ repo = "aspino";
8+ rev = "d28579b5967988b88bce6d9964a8f0a926286e9c";
9+ sha256 = "0r9dnkq3rldv5hhnmycmzqyg23hv5w3g3i5a00a8zalnzfiyirnq";
10+ };
11+
12+ buildInputs = [ zlib boost ];
13+
14+ preBuild = ''
15+ cp ${glucose.src} patches/glucose-syrup.tgz
16+ ./bootstrap.sh
17+ '';
18+
19+ installPhase = ''
20+ mkdir -p $out/bin
21+ install -m0755 build/release/{aspino,fairino-{bs,ls,ps},maxino-2015-{k16,kdyn}} $out/bin
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ description = "SAT/PseudoBoolean/MaxSat/ASP solver using glucose";
26+ maintainers = with maintainers; [ gebner ];
27+ platforms = platforms.unix;
28+ license = licenses.asl20;
29+ homepage = http://alviano.net/software/maxino/;
30+ };
31+}