about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/aspcud/default.nix
blob: b58f603ce594390317f63afac425be0241848f8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchzip
, 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";
  };

  buildInputs = [ boost clasp cmake gringo re2c ];

  cmakeFlags = [
    "-DCMAKE_BUILD_TYPE=Release"
    "-DASPCUD_GRINGO_PATH=${gringo}/bin/gringo"
    "-DASPCUD_CLASP_PATH=${clasp}/bin/clasp"
  ];

  meta = with stdenv.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;
  };
}