2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchgit, ocaml, findlib, ocamlbuild, menhir, which }:
|
2014-10-28 16:21:55 +00:00
|
|
|
|
|
|
|
let inherit (stdenv.lib) getVersion versionAtLeast; in
|
|
|
|
|
|
|
|
assert versionAtLeast (getVersion ocaml) "3.12";
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
name = "eff-20140928";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/matijapretnar/eff.git";
|
|
|
|
rev = "90f884a790fddddb51d4d1d3b7c2edf1e8aabb64";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "0cqqrpvfw0nrk5d28mkzfvc8yzqxcss0k46bkmqhqjkqq886n2mm";
|
2014-10-28 16:21:55 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild menhir which ];
|
2014-10-28 16:21:55 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.eff-lang.org;
|
2014-10-28 16:21:55 +00:00
|
|
|
description = "A functional programming language based on algebraic effects and their handlers";
|
|
|
|
longDescription = ''
|
|
|
|
Eff is a functional language with handlers of not only exceptions,
|
|
|
|
but also of other computational effects such as state or I/O. With
|
|
|
|
handlers, you can simply implement transactions, redirections,
|
|
|
|
backtracking, multi-threading, and much more...
|
|
|
|
'';
|
|
|
|
license = licenses.bsd2;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-28 16:21:55 +00:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|