ocamlPackages.rresult: init at 0.5.0

Rresult is an OCaml module for handling computation results and errors in an
explicit and declarative manner without resorting to exceptions.

Homepage: http://erratique.ch/software/rresult
This commit is contained in:
Vincent Laporte 2017-03-15 20:04:40 +00:00
parent 18a272ef75
commit eba3900781
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-rresult-${version}";
version = "0.5.0";
src = fetchurl {
url = "http://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
sha256 = "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm";
};
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
inherit (topkg) buildPhase installPhase;
meta = {
license = stdenv.lib.licenses.isc;
homepage = http://erratique.ch/software/rresult;
description = "Result value combinators for OCaml";
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (ocaml.meta) platforms;
};
}

View file

@ -494,6 +494,8 @@ let
re = callPackage ../development/ocaml-modules/re { };
rresult = callPackage ../development/ocaml-modules/rresult { };
safepass = callPackage ../development/ocaml-modules/safepass { };
sedlex = callPackage ../development/ocaml-modules/sedlex { };