git.iko.soy/typeable/nixpkgs
on master help sign in
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

commiteba3900781ef0abd0a8eb478820280851d1e0fbb authorVincent Laporte <Vincent.Laporte@gmail.com> dateWed 15 Mar 2017, 20:04 (10 years ago) parent18a272e
2 files changed+26
pkgs/development/ocaml-modules/rresult/default.nix+24 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/rresult/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg }:
2+
3+stdenv.mkDerivation rec {
4+ name = "ocaml${ocaml.version}-rresult-${version}";
5+ version = "0.5.0";
6+ src = fetchurl {
7+ url = "http://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
8+ sha256 = "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm";
9+ };
10+
11+ unpackCmd = "tar xjf $src";
12+
13+ buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
14+
15+ inherit (topkg) buildPhase installPhase;
16+
17+ meta = {
18+ license = stdenv.lib.licenses.isc;
19+ homepage = http://erratique.ch/software/rresult;
20+ description = "Result value combinators for OCaml";
21+ maintainers = [ stdenv.lib.maintainers.vbgl ];
22+ inherit (ocaml.meta) platforms;
23+ };
24+}
pkgs/top-level/ocaml-packages.nix+2
@@ -494,6 +494,8 @@ let
494494
495495 re = callPackage ../development/ocaml-modules/re { };
496496
497+ rresult = callPackage ../development/ocaml-modules/rresult { };
498+
497499 safepass = callPackage ../development/ocaml-modules/safepass { };
498500
499501 sedlex = callPackage ../development/ocaml-modules/sedlex { };