Skip to content

Commit 20b6b3c

Browse files
committedNov 10, 2017
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.
1 parent 39c70b3 commit 20b6b3c

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

‎pkgs/top-level/all-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,8 @@ with pkgs;
885885

886886
clib = callPackage ../tools/package-management/clib { };
887887

888+
clingo = callPackage ../applications/science/logic/potassco/clingo.nix { };
889+
888890
colord-kde = libsForQt5.callPackage ../tools/misc/colord-kde {};
889891

890892
colpack = callPackage ../applications/science/math/colpack { };

0 commit comments

Comments
 (0)
Please sign in to comment.