mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
b41229b19d
The gringo binary is part of the clingo package
46 lines
914 B
Nix
46 lines
914 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, boost
|
|
, catch2
|
|
, clasp
|
|
, cmake
|
|
, clingo
|
|
, re2c
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.9.6";
|
|
pname = "aspcud";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "potassco";
|
|
repo = "aspcud";
|
|
rev = "v${version}";
|
|
hash = "sha256-PdRfpmH7zF5dn+feoijtzdSUjaYhjHwyAUfuYoWCL9E=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${catch2}/include/catch2/catch.hpp libcudf/tests/catch.hpp
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ boost clasp clingo re2c ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DASPCUD_GRINGO_PATH=${clingo}/bin/gringo"
|
|
"-DASPCUD_CLASP_PATH=${clasp}/bin/clasp"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Solver for package problems in CUDF format using ASP";
|
|
homepage = "https://potassco.org/aspcud/";
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.hakuch ];
|
|
license = licenses.gpl3Plus;
|
|
};
|
|
}
|