mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
commit
fe7d82e6a6
1 changed files with 19 additions and 7 deletions
|
@ -1,34 +1,46 @@
|
||||||
{ stdenv, fetchFromGitHub, zlib, boost, glucose }:
|
{ stdenv, fetchurl, fetchFromGitHub, zlib, boost, glucose }:
|
||||||
|
|
||||||
|
let
|
||||||
|
glucose' = fetchurl {
|
||||||
|
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup.tgz";
|
||||||
|
sha256 = "0bq5l2jabhdfhng002qfk0mcj4pfi1v5853x3c7igwfrgx0jmfld";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "aspino-2016-01-31";
|
name = "aspino-unstable-2017-03-09";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alviano";
|
owner = "alviano";
|
||||||
repo = "aspino";
|
repo = "aspino";
|
||||||
rev = "d28579b5967988b88bce6d9964a8f0a926286e9c";
|
rev = "e31c3b4e5791a454e6602439cb26bd98d23c4e78";
|
||||||
sha256 = "0r9dnkq3rldv5hhnmycmzqyg23hv5w3g3i5a00a8zalnzfiyirnq";
|
sha256 = "0annsjs2prqmv1lbs0lxr7yclfzh47xg9zyiq6mdxcc02rxsi14f";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ zlib boost ];
|
buildInputs = [ zlib boost ];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile \
|
substituteInPlace Makefile \
|
||||||
--replace "GCC = g++" "GCC = c++"
|
--replace "GCC = g++" "GCC = c++"
|
||||||
|
|
||||||
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
cp ${glucose.src} patches/glucose-syrup.tgz
|
cp ${glucose'} patches/glucose-syrup.tgz
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -m0755 build/release/{aspino,fairino-{bs,ls,ps},maxino-2015-{k16,kdyn}} $out/bin
|
install -m0755 build/release/{aspino,fairino-{bs,ls,ps},maxino-2015-{k16,kdyn}} $out/bin
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "SAT/PseudoBoolean/MaxSat/ASP solver using glucose";
|
description = "SAT/PseudoBoolean/MaxSat/ASP solver using glucose";
|
||||||
maintainers = with maintainers; [ gebner ];
|
maintainers = with maintainers; [ gebner ma27 ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = http://alviano.net/software/maxino/;
|
homepage = http://alviano.net/software/maxino/;
|
||||||
|
|
Loading…
Reference in a new issue