python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / aspcud / default.nix
blob690e69b80642b92aa32cd39642661719b9337d7a
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , boost
5 , catch2
6 , clasp
7 , cmake
8 , gringo
9 , re2c
12 stdenv.mkDerivation rec {
13   version = "1.9.6";
14   pname = "aspcud";
16   src = fetchFromGitHub {
17     owner = "potassco";
18     repo = "aspcud";
19     rev = "v${version}";
20     hash = "sha256-PdRfpmH7zF5dn+feoijtzdSUjaYhjHwyAUfuYoWCL9E=";
21   };
23   postPatch = ''
24     cp ${catch2}/include/catch2/catch.hpp libcudf/tests/catch.hpp
25   '';
27   nativeBuildInputs = [ cmake ];
28   buildInputs = [ boost clasp gringo re2c ];
30   cmakeFlags = [
31     "-DCMAKE_BUILD_TYPE=Release"
32     "-DASPCUD_GRINGO_PATH=${gringo}/bin/gringo"
33     "-DASPCUD_CLASP_PATH=${clasp}/bin/clasp"
34   ];
36   doCheck = true;
38   meta = with lib; {
39     description = "Solver for package problems in CUDF format using ASP";
40     homepage = "https://potassco.org/aspcud/";
41     platforms = platforms.all;
42     maintainers = [ maintainers.hakuch ];
43     license = licenses.gpl3Plus;
44   };