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