mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
868 B
Nix
44 lines
868 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, boost
|
|
, catch2
|
|
, cmake
|
|
, clingo
|
|
, re2c
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.9.6";
|
|
pname = "aspcud";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "potassco";
|
|
repo = "aspcud";
|
|
rev = "v${version}";
|
|
hash = "sha256-PdRfpmH7zF5dn+feoijtzdSUjaYhjHwyAUfuYoWCL9E=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${catch2}/include/catch2/catch.hpp libcudf/tests/catch.hpp
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ boost clingo re2c ];
|
|
|
|
cmakeFlags = [
|
|
"-DASPCUD_GRINGO_PATH=${clingo}/bin/gringo"
|
|
"-DASPCUD_CLASP_PATH=${clingo}/bin/clasp"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|