2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-09-25 04:45:31 +00:00
|
|
|
name = "coq${coq.coq-version}-metalib-${version}";
|
|
|
|
version = "20200527";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "plclub";
|
|
|
|
repo = "metalib";
|
|
|
|
rev = "597fd7d0c93eb159274e84a39d554f10f1efccf8";
|
|
|
|
sha256 = "0wbypc05d2lqfm9qaw98ynr5yc1p0ipsvyc3bh1rk9nz7zwirmjs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
sourceRoot = "source/Metalib";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [ coq ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
installFlags = "COQMF_COQLIB=$(out)/lib/coq/${coq.coq-version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/plclub/metalib";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-09-25 04:45:31 +00:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.10" "8.11" "8.12" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|