2018-03-12 17:51:54 +01:00
|
|
|
{ stdenv, fetchzip, cmake }:
|
|
|
|
|
2017-11-10 13:37:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "clingo";
|
2018-07-04 20:23:33 +02:00
|
|
|
version = "5.3.0";
|
2017-11-10 13:37:20 +01:00
|
|
|
|
2018-03-12 17:51:54 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/potassco/clingo/archive/v${version}.tar.gz";
|
2018-07-04 20:23:33 +02:00
|
|
|
sha256 = "01czx26p8gv81ahrh650x208hjhd8bx1kb688fmk1m4pw4yg5bfv";
|
2017-11-10 13:37:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
nativeBuildInputs = [cmake];
|
|
|
|
|
2018-03-12 18:07:18 +01:00
|
|
|
cmakeFlags = [ "-DCLINGO_BUILD_WITH_PYTHON=OFF" ];
|
|
|
|
|
2017-11-10 13:37:20 +01:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "ASP system to ground and solve logic programs";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2018-03-12 17:51:54 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-11-10 13:37:20 +01:00
|
|
|
homepage = "https://potassco.org/";
|
|
|
|
downloadPage = "https://github.com/potassco/clingo/releases/";
|
|
|
|
};
|
|
|
|
}
|