nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, which, ocamlPackages }:
2
3let version = "5.0"; in
4
5stdenv.mkDerivation {
6
7 name = "eff-${version}";
8
9 src = fetchFromGitHub {
10 owner = "matijapretnar";
11 repo = "eff";
12 rev = "v${version}";
13 sha256 = "1fslfj5d7fhj3f7kh558b8mk5wllwyq4rnhfkyd96fpy144sdcka";
14 };
15
16 buildInputs = [ which ] ++ (with ocamlPackages; [
17 ocaml findlib ocamlbuild menhir js_of_ocaml js_of_ocaml-ocamlbuild
18 ]);
19
20 doCheck = true;
21 checkTarget = "test";
22
23 meta = with stdenv.lib; {
24 homepage = http://www.eff-lang.org;
25 description = "A functional programming language based on algebraic effects and their handlers";
26 longDescription = ''
27 Eff is a functional language with handlers of not only exceptions,
28 but also of other computational effects such as state or I/O. With
29 handlers, you can simply implement transactions, redirections,
30 backtracking, multi-threading, and much more...
31 '';
32 license = licenses.bsd2;
33 inherit (ocamlPackages.ocaml.meta) platforms;
34 maintainers = [ maintainers.jirkamarsik ];
35 };
36}