@@ -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+}