3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/clingo/default.nix
Théo Zimmermann 93fbb947b3 aspcud: fix by updating the dependencies (#20086)
Depends on gringo but gringo is now maintained as part of the clingo
suite. This commit removes gringo (standalone) and replace it with
the latest version of clingo. This update follows closely the old
derivation for gringo (see 99e06fe).
2016-11-03 12:14:45 +01:00

38 lines
757 B
Nix

{ stdenv, fetchFromGitHub,
bison, re2c, scons
}:
let
version = "5.1.0";
in
stdenv.mkDerivation rec {
name = "clingo-${version}";
src = fetchFromGitHub {
owner = "potassco";
repo = "clingo";
rev = "v${version}";
sha256 = "1rvaqqa8xfagsqxk45lax3l29sksijd3zvl662vpvdi1sy0d71xv";
};
buildInputs = [ bison re2c scons ];
buildPhase = ''
scons --build-dir=release
'';
installPhase = ''
mkdir -p $out/bin
cp build/release/{gringo,clingo,reify,lpconvert} $out/bin/
'';
meta = with stdenv.lib; {
description = "A grounder and solver for logic programs.";
homepage = http://potassco.org;
platforms = platforms.linux;
maintainers = [ maintainers.hakuch ];
license = licenses.gpl3Plus;
};
}