2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchzip, cmake }:
|
2018-03-12 16:51:54 +00:00
|
|
|
|
2017-11-10 12:37:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clingo";
|
2020-12-07 13:03:03 +00:00
|
|
|
version = "5.4.1";
|
2017-11-10 12:37:20 +00:00
|
|
|
|
2018-03-12 16:51:54 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/potassco/clingo/archive/v${version}.tar.gz";
|
2020-12-07 13:03:03 +00:00
|
|
|
sha256 = "1f0q5f71s696ywxcjlfz7z134m1h7i39j9sfdv8hlw2w3g5nppc3";
|
2017-11-10 12:37:20 +00:00
|
|
|
};
|
|
|
|
|
2019-09-26 08:16:23 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-11-10 12:37:20 +00:00
|
|
|
|
2018-03-12 17:07:18 +00:00
|
|
|
cmakeFlags = [ "-DCLINGO_BUILD_WITH_PYTHON=OFF" ];
|
|
|
|
|
2017-11-10 12:37:20 +00:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "ASP system to ground and solve logic programs";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2017-11-10 12:37:20 +00:00
|
|
|
homepage = "https://potassco.org/";
|
|
|
|
downloadPage = "https://github.com/potassco/clingo/releases/";
|
|
|
|
};
|
|
|
|
}
|