2015-09-26 15:40:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq }:
|
|
|
|
|
|
|
|
let param =
|
|
|
|
if coq.coq-version == "8.4"
|
|
|
|
then { version = "0.9.0"; sha256 = "1n3bk003vvbghbrxkhal6drnc0l65jv9y77wd56is3jw9xgiif0w"; }
|
|
|
|
else { version = "1.0.0-beta2"; sha256 = "0rdh6jsag174576nvra6m2g44fvmlbz4am5wcashj45bq30021sa"; };
|
|
|
|
in
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-09-26 15:40:07 +01:00
|
|
|
name = "coq${coq.coq-version}-coq-ext-lib-${version}";
|
|
|
|
inherit (param) version;
|
2014-10-11 23:24:28 +01:00
|
|
|
|
2015-09-26 15:40:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coq-ext-lib";
|
|
|
|
repo = "coq-ext-lib";
|
|
|
|
rev = "v${param.version}";
|
|
|
|
inherit (param) sha256;
|
2014-10-11 23:24:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq.ocaml coq.camlp5 ];
|
|
|
|
propagatedBuildInputs = [ coq ];
|
|
|
|
|
2014-10-13 22:10:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
2014-10-11 23:24:28 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/coq-ext-lib/coq-ext-lib;
|
|
|
|
description = "A collection of theories and plugins that may be useful in other Coq developments";
|
|
|
|
maintainers = with maintainers; [ jwiegley ];
|
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|