2021-03-09 03:18:52 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildDunePackage (rec {
|
2020-10-07 09:15:18 +00:00
|
|
|
pname = "result";
|
|
|
|
version = "1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
|
|
|
|
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
|
|
|
|
duneVersion = "1";
|
|
|
|
})
|