Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{stdenv, fetchurl, cmake}: | ||
stdenv.mkDerivation rec { | ||
name = "${pname}-${version}"; | ||
pname = "clingo"; | ||
version = "5.2.2"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/potassco/clingo/releases/v${version}.tar.gz"; | ||
sha256 = "1kxzb385g8p9mqm1x9wvjrigifa09w6vj0wl7kradibm5qagh7ns"; | ||
}; | ||
|
||
buildInputs = []; | ||
nativeBuildInputs = [cmake]; | ||
|
||
meta = { | ||
inherit version; | ||
description = "ASP system to ground and solve logic programs"; | ||
license = stdenv.lib.licenses.mit; | ||
maintainers = [stdenv.lib.maintainers.raskin]; | ||
platforms = stdenv.lib.platforms.linux; | ||
homepage = "https://potassco.org/"; | ||
downloadPage = "https://github.com/potassco/clingo/releases/"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
target clingo.nix | ||
attribute_name clingo | ||
url https://github.com/potassco/clingo/releases/ | ||
ensure_choice | ||
version '.*/v([0-9.]+)[.]tar[.].*' '\1' | ||
minimize_overwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters