clingo: init at 5.2.2

Note that clasp (included in clingo) is already packaged separately, but
only an earlier version. As it is used by OPAM, but will stop being used
by OPAM later (and I want to grab the name for Clasp the Common Lisp
implementation), I decided to package clingo as a whole (as recommended),
but to leave clasp until OPAM stops needing it.

+32
+24
pkgs/applications/science/logic/potassco/clingo.nix
··· 1 + {stdenv, fetchurl, cmake}: 2 + stdenv.mkDerivation rec { 3 + name = "${pname}-${version}"; 4 + pname = "clingo"; 5 + version = "5.2.2"; 6 + 7 + src = fetchurl { 8 + url = "https://github.com/potassco/clingo/releases/v${version}.tar.gz"; 9 + sha256 = "1kxzb385g8p9mqm1x9wvjrigifa09w6vj0wl7kradibm5qagh7ns"; 10 + }; 11 + 12 + buildInputs = []; 13 + nativeBuildInputs = [cmake]; 14 + 15 + meta = { 16 + inherit version; 17 + description = "ASP system to ground and solve logic programs"; 18 + license = stdenv.lib.licenses.mit; 19 + maintainers = [stdenv.lib.maintainers.raskin]; 20 + platforms = stdenv.lib.platforms.linux; 21 + homepage = "https://potassco.org/"; 22 + downloadPage = "https://github.com/potassco/clingo/releases/"; 23 + }; 24 + }
+6
pkgs/applications/science/logic/potassco/clingo.upstream
··· 1 + target clingo.nix 2 + attribute_name clingo 3 + url https://github.com/potassco/clingo/releases/ 4 + ensure_choice 5 + version '.*/v([0-9.]+)[.]tar[.].*' '\1' 6 + minimize_overwrite
+2
pkgs/top-level/all-packages.nix
··· 885 885 886 886 clib = callPackage ../tools/package-management/clib { }; 887 887 888 + clingo = callPackage ../applications/science/logic/potassco/clingo.nix { }; 889 + 888 890 colord-kde = libsForQt5.callPackage ../tools/misc/colord-kde {}; 889 891 890 892 colpack = callPackage ../applications/science/math/colpack { };