2018-04-23 09:16:03 +02:00
|
|
|
{ stdenv, fetchFromGitHub, which, ocamlPackages }:
|
2014-10-28 17:21:55 +01:00
|
|
|
|
2018-04-23 09:16:03 +02:00
|
|
|
let version = "5.0"; in
|
2014-10-28 17:21:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
2018-04-23 09:16:03 +02:00
|
|
|
name = "eff-${version}";
|
2014-10-28 17:21:55 +01:00
|
|
|
|
2018-04-23 09:16:03 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matijapretnar";
|
|
|
|
repo = "eff";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fslfj5d7fhj3f7kh558b8mk5wllwyq4rnhfkyd96fpy144sdcka";
|
2014-10-28 17:21:55 +01:00
|
|
|
};
|
|
|
|
|
2018-04-23 09:16:03 +02:00
|
|
|
buildInputs = [ which ] ++ (with ocamlPackages; [
|
|
|
|
ocaml findlib ocamlbuild menhir js_of_ocaml js_of_ocaml-ocamlbuild
|
|
|
|
]);
|
2014-10-28 17:21:55 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.eff-lang.org;
|
2014-10-28 17:21:55 +01: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;
|
2018-04-23 09:16:03 +02:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2014-10-28 17:21:55 +01:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|