2019-03-15 14:12:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coq, coq-ext-lib }:
|
2018-12-03 14:45:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-06 15:03:18 +01:00
|
|
|
version = "1.2.0";
|
2018-12-03 14:45:03 +00:00
|
|
|
name = "coq${coq.coq-version}-simple-io-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Lysxia";
|
|
|
|
repo = "coq-simple-io";
|
|
|
|
rev = version;
|
2019-06-06 15:03:18 +01:00
|
|
|
sha256 = "1im1vwp7l7ha8swnhgbih0qjg187n8yx14i003nf6yy7p0ryxc9m";
|
2018-12-03 14:45:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml ocamlbuild ]);
|
|
|
|
|
2019-03-15 14:12:42 +00:00
|
|
|
propagatedBuildInputs = [ coq-ext-lib ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-12-03 14:45:03 +00:00
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Purely functional IO for Coq";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (coq.meta) platforms;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2019-05-14 09:31:49 +01:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.7" "8.8" "8.9" ];
|
2018-12-03 14:45:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|