2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchzip
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost, clasp, cmake, gringo, re2c
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.9.4";
|
|
|
|
pname = "aspcud";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/potassco/aspcud/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0vrf7h7g99vw1mybqfrpxamsnf89p18czlzgjmxl1zkiwc7vjpzw";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost clasp gringo re2c ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DASPCUD_GRINGO_PATH=${gringo}/bin/gringo"
|
|
|
|
"-DASPCUD_CLASP_PATH=${clasp}/bin/clasp"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Solver for package problems in CUDF format using ASP";
|
|
|
|
homepage = "https://potassco.org/aspcud/";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.hakuch ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|