2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, which, ocamlPackages }:
|
2014-10-28 16:21:55 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "eff";
|
2021-07-17 17:56:23 +00:00
|
|
|
version = "5.0";
|
2014-10-28 16:21:55 +00:00
|
|
|
|
2018-04-23 07:16:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matijapretnar";
|
|
|
|
repo = "eff";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fslfj5d7fhj3f7kh558b8mk5wllwyq4rnhfkyd96fpy144sdcka";
|
2014-10-28 16:21:55 +00:00
|
|
|
};
|
|
|
|
|
2020-06-21 05:33:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.ml --replace js_of_ocaml.ocamlbuild js_of_ocaml-ocamlbuild
|
|
|
|
'';
|
|
|
|
|
2022-04-04 11:57:15 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ which ] ++ (with ocamlPackages; [
|
|
|
|
ocaml findlib ocamlbuild menhir
|
2018-04-23 07:16:03 +00:00
|
|
|
]);
|
2014-10-28 16:21:55 +00:00
|
|
|
|
2022-04-04 11:57:15 +00:00
|
|
|
buildInputs = with ocamlPackages; [ js_of_ocaml js_of_ocaml-ocamlbuild ];
|
|
|
|
|
2014-10-28 16:21:55 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://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;
|
2018-04-23 07:16:03 +00:00
|
|
|
inherit (ocamlPackages.ocaml.meta) platforms;
|
2014-10-28 16:21:55 +00:00
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|