nixpkgs/pkgs/applications/science/logic/aspino/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

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