nixpkgs/pkgs/tools/misc/aspcud/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
914 B
Nix
Raw Normal View History

2021-09-19 17:55:55 +01:00
{ lib
, stdenv
, fetchFromGitHub
, boost
, catch2
2021-09-19 17:55:55 +01:00
, clasp
, cmake
, gringo
, re2c
}:
stdenv.mkDerivation rec {
2021-01-18 10:04:20 +00:00
version = "1.9.5";
pname = "aspcud";
2021-09-19 17:55:55 +01:00
src = fetchFromGitHub {
owner = "potassco";
repo = "aspcud";
rev = "v${version}";
hash = "sha256-d04GPMoz6PMGq6iiul0zT1C9Mljdl9uJJ2C8MIwcmaw=";
};
postPatch = ''
cp ${catch2}/include/catch2/catch.hpp libcudf/tests/catch.hpp
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ boost clasp gringo re2c ];
2018-02-24 18:45:20 +00:00
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DASPCUD_GRINGO_PATH=${gringo}/bin/gringo"
"-DASPCUD_CLASP_PATH=${clasp}/bin/clasp"
];
doCheck = true;
meta = with lib; {
description = "Solver for package problems in CUDF format using ASP";
2018-02-24 18:45:20 +00:00
homepage = "https://potassco.org/aspcud/";
platforms = platforms.all;
maintainers = [ maintainers.hakuch ];
license = licenses.gpl3Plus;
};
}