nixpkgs/pkgs/development/interpreters/eff/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ 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
'';
2018-04-23 07:16:03 +00:00
buildInputs = [ which ] ++ (with ocamlPackages; [
ocaml findlib ocamlbuild menhir js_of_ocaml js_of_ocaml-ocamlbuild
]);
2014-10-28 16:21:55 +00:00
doCheck = true;
checkTarget = "test";
meta = with lib; {
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 ];
};
}