3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/coq-modules/coq-elpi/default.nix
Cyril Cohen cc1f954bc4
ocamlPackages.elpi: 1.10.2 -> 1.11.0
coqPackages.coq-elpi: 1.3.1 -> 1.4.0
coqPackages.hierarchy-builder: 0.9.0 -> 0.9.1
2020-06-04 10:25:19 +02:00

39 lines
935 B
Nix

{ stdenv, fetchFromGitHub, which, coq }:
let params = {
"8.11" = rec {
version = "1.4.0";
rev = "v${version}";
sha256 = "1pzmjgvvdwki59rfsha3c1ik4gii39j44ijyb9m9as1cyfpxx906";
};
};
param = params.${coq.coq-version};
in
stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-elpi-${param.version}";
src = fetchFromGitHub {
owner = "LPCIC";
repo = "coq-elpi";
inherit (param) rev sha256;
};
nativeBuildInputs = [ which ];
buildInputs = [ coq coq.ocaml ] ++ (with coq.ocamlPackages; [ findlib elpi ]);
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
meta = {
description = "Coq plugin embedding ELPI.";
maintainers = [ stdenv.lib.maintainers.cohencyril ];
license = stdenv.lib.licenses.lgpl21;
inherit (coq.meta) platforms;
inherit (src.meta) homepage;
};
passthru = {
compatibleCoqVersions = stdenv.lib.flip builtins.hasAttr params;
};
}