coqPackages.ltac2: init at 0.1

This commit is contained in:
Vincent Laporte 2019-05-22 09:42:06 +00:00 committed by Vincent Laporte
parent 5959e98fc2
commit c37e00067d
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ stdenv, fetchFromGitHub, which, coq }:
let params = {
"8.7" = {
version = "0.1";
rev = "v0.1-8.7";
sha256 = "0l6wiwi4cvd0i324fb29i9mdh0ijlxzggw4mrjjy695l2qdnlgg0";
};
"8.8" = {
version = "0.1";
rev = "0.1";
sha256 = "1zz26cyv99whj7rrpgnhhm9dfqnpmrx5pqizn8ihf8jkq8d4drz7";
};
"8.9" = {
version = "0.1";
rev = "a69551a49543b22a7d4e6a2484356b56bd05068e";
sha256 = "0xby1kb26r9gcvk5511wqj05fqm9paynwfxlfqkmwkgnfmzk0x73";
};
};
param = params."${coq.coq-version}";
in
stdenv.mkDerivation rec {
inherit (param) version;
name = "coq${coq.coq-version}-ltac2-${version}";
src = fetchFromGitHub {
owner = "coq";
repo = "ltac2";
inherit (param) rev sha256;
};
nativeBuildInputs = [ which ];
buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml findlib camlp5 ]);
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
meta = {
description = "A robust and expressive tactic language for Coq";
maintainers = [ stdenv.lib.maintainers.vbgl ];
license = stdenv.lib.licenses.lgpl21;
inherit (coq.meta) platforms;
inherit (src.meta) homepage;
};
passthru = {
compatibleCoqVersions = stdenv.lib.flip builtins.hasAttr params;
};
}

View File

@ -33,6 +33,7 @@ let
interval = callPackage ../development/coq-modules/interval {};
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
iris = callPackage ../development/coq-modules/iris {};
ltac2 = callPackage ../development/coq-modules/ltac2 {};
math-classes = callPackage ../development/coq-modules/math-classes { };
inherit (callPackage ../development/coq-modules/mathcomp { })
mathcompGen mathcompGenSingle mathcompCorePkgs_1_7 mathcompCorePkgs_1_8 mathcompCorePkgs