2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, zlib, boost }:
|
2018-03-13 22:03:00 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
glucose' = fetchurl {
|
|
|
|
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz";
|
|
|
|
sha256 = "0bq5l2jabhdfhng002qfk0mcj4pfi1v5853x3c7igwfrgx0jmfld";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-03-13 22:03:00 +01:00
|
|
|
name = "aspino-unstable-2017-03-09";
|
2016-06-21 13:55:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alviano";
|
|
|
|
repo = "aspino";
|
2018-03-13 22:03:00 +01:00
|
|
|
rev = "e31c3b4e5791a454e6602439cb26bd98d23c4e78";
|
|
|
|
sha256 = "0annsjs2prqmv1lbs0lxr7yclfzh47xg9zyiq6mdxcc02rxsi14f";
|
2016-06-21 13:55:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib boost ];
|
|
|
|
|
2018-03-13 22:03:00 +01:00
|
|
|
postPatch = ''
|
2016-08-11 05:29:18 +02:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "GCC = g++" "GCC = c++"
|
2018-03-13 22:03:00 +01:00
|
|
|
|
|
|
|
patchShebangs .
|
2016-08-11 05:29:18 +02:00
|
|
|
'';
|
|
|
|
|
2016-06-21 13:55:28 +02:00
|
|
|
preBuild = ''
|
2018-03-13 22:03:00 +01:00
|
|
|
cp ${glucose'} patches/glucose-syrup.tgz
|
2016-06-21 13:55:28 +02:00
|
|
|
./bootstrap.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-03-13 22:03:00 +01:00
|
|
|
runHook preInstall
|
2016-06-21 13:55:28 +02:00
|
|
|
mkdir -p $out/bin
|
|
|
|
install -m0755 build/release/{aspino,fairino-{bs,ls,ps},maxino-2015-{k16,kdyn}} $out/bin
|
2018-03-13 22:03:00 +01:00
|
|
|
runHook postInstall
|
2016-06-21 13:55:28 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SAT/PseudoBoolean/MaxSat/ASP solver using glucose";
|
2018-03-13 22:03:00 +01:00
|
|
|
maintainers = with maintainers; [ gebner ma27 ];
|
2016-06-21 13:55:28 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = http://alviano.net/software/maxino/;
|
2018-12-09 23:32:14 +01:00
|
|
|
# See pkgs/applications/science/logic/glucose/default.nix
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2016-06-21 13:55:28 +02:00
|
|
|
};
|
|
|
|
}
|