ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / as / aspcud / package.nix
blobcd290d5e085e56233db906c47fc254ee605e7e33
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , boost
5 , catch2
6 , cmake
7 , clingo
8 , re2c
9 }:
11 stdenv.mkDerivation rec {
12   version = "1.9.6";
13   pname = "aspcud";
15   src = fetchFromGitHub {
16     owner = "potassco";
17     repo = "aspcud";
18     rev = "v${version}";
19     hash = "sha256-PdRfpmH7zF5dn+feoijtzdSUjaYhjHwyAUfuYoWCL9E=";
20   };
22   postPatch = ''
23     cp ${catch2}/include/catch2/catch.hpp libcudf/tests/catch.hpp
24   '';
26   nativeBuildInputs = [ cmake ];
27   buildInputs = [ boost clingo re2c ];
29   cmakeFlags = [
30     "-DASPCUD_GRINGO_PATH=${clingo}/bin/gringo"
31     "-DASPCUD_CLASP_PATH=${clingo}/bin/clasp"
32   ];
34   doCheck = true;
36   meta = with lib; {
37     description = "Solver for package problems in CUDF format using ASP";
38     homepage = "https://potassco.org/aspcud/";
39     platforms = platforms.all;
40     maintainers = [ maintainers.hakuch ];
41     license = licenses.gpl3Plus;
42   };