1 { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
3 lib.throwIfNot (lib.versionAtLeast ocaml.version "4.07")
4 "rresult is not available for OCaml ${ocaml.version}"
6 stdenv.mkDerivation rec {
7 pname = "ocaml${ocaml.version}-rresult";
10 url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
11 sha256 = "sha256-Eap/W4NGDmBDHjFU4+MsBx1G4VHqV2DPJDd4Bb+XVUA=";
14 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
15 buildInputs = [ topkg ];
17 propagatedBuildInputs = [ result ];
21 inherit (topkg) buildPhase installPhase;
24 license = lib.licenses.isc;
25 homepage = "https://erratique.ch/software/rresult";
26 description = "Result value combinators for OCaml";
27 maintainers = [ lib.maintainers.vbgl ];
28 inherit (ocaml.meta) platforms;