ocamlPackages.result: init at 1.1

This commit is contained in:
Ricardo M. Correia 2016-02-20 15:38:30 +01:00
parent cd897f657c
commit abfc9e2afa
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, ocaml, findlib }:
let version = "1.1"; in
stdenv.mkDerivation {
name = "ocaml-result-${version}";
src = fetchFromGitHub {
owner = "janestreet";
repo = "result";
rev = "${version}";
sha256 = "05y07rxdbkaxsc8cy458y00gq05i8gp35hhwg1b757mam21ccxxz";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
meta = {
homepage = https://github.com/janestreet/result;
description = "Compatibility Result module";
longDescription = ''
Projects that want to use the new result type defined in OCaml >= 4.03
while staying compatible with older version of OCaml should use the
Result module defined in this library.
'';
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@ -4920,6 +4920,8 @@ let
re2 = callPackage ../development/ocaml-modules/re2 { };
result = callPackage ../development/ocaml-modules/ocaml-result { };
sequence = callPackage ../development/ocaml-modules/sequence { };
tuntap = callPackage ../development/ocaml-modules/tuntap { };