mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-17 02:19:30 +03:00
clingcon: 3.3.0 -> 5.0.0
This commit is contained in:
parent
88a81a115a
commit
1509f463a0
@ -1,39 +1,33 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, bison
|
, clingo
|
||||||
, re2c
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "clingcon";
|
pname = "clingcon";
|
||||||
version = "3.3.0";
|
version = "5.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "potassco";
|
owner = "potassco";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
fetchSubmodules = true;
|
sha256 = "1g2xkz9nsgqnrw3fdf5jchl16f0skj5mm32va61scc2yrchll166";
|
||||||
sha256 = "1q7517h10jfvjdk2czq8d6y57r8kr1j1jj2k2ip2qxkpyfigk4rs";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# deal with clingcon through git submodules recursively importing
|
nativeBuildInputs = [ cmake clingo ];
|
||||||
# an outdated version of libpotassco which uses deprecated <xlocale.h> header in .cpp files
|
|
||||||
postPatch = ''
|
|
||||||
find ./ -type f -exec sed -i 's/<xlocale.h>/<locale.h>/g' {} \;
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake bison re2c ];
|
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCLINGCON_MANAGE_RPATH=ON"
|
"-DCLINGCON_MANAGE_RPATH=ON"
|
||||||
"-DCLINGO_BUILD_WITH_PYTHON=OFF"
|
"-DPYCLINGCON_ENABLE=OFF"
|
||||||
"-DCLINGO_BUILD_WITH_LUA=OFF"
|
"-DCLINGCON_BUILD_TESTS=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Extension of clingo to handle constraints over integers";
|
description = "Extension of clingo to handle constraints over integers";
|
||||||
license = lib.licenses.gpl3; # for now GPL3, next version MIT!
|
license = lib.licenses.mit;
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
homepage = "https://potassco.org/";
|
homepage = "https://potassco.org/";
|
||||||
downloadPage = "https://github.com/potassco/clingcon/releases/";
|
downloadPage = "https://github.com/potassco/clingcon/releases/";
|
||||||
|
Loading…
Reference in New Issue
Block a user