2016-02-20 14:38:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib }:
|
|
|
|
|
2017-07-10 19:20:55 +01:00
|
|
|
let version = "1.2"; in
|
2016-02-20 14:38:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-07-10 19:20:55 +01:00
|
|
|
name = "ocaml${ocaml.version}-result-${version}";
|
2016-02-20 14:38:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janestreet";
|
|
|
|
repo = "result";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2017-07-10 19:20:55 +01:00
|
|
|
sha256 = "1jwzpcmxwgkfsbjz9zl59v12hf1vv4r9kiifancn9p8gm206g3g0";
|
2016-02-20 14:38:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/janestreet/result";
|
2016-02-20 14:38:30 +00:00
|
|
|
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;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2016-02-20 14:38:30 +00:00
|
|
|
};
|
|
|
|
}
|