blob: 6ab0a68920f719d36e868dc3ff7caf24d3b31c18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ 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;
};
}
|