nixpkgs/pkgs/development/ocaml-modules/ocaml-result/default.nix

25 lines
742 B
Nix
Raw Permalink Normal View History

2021-02-26 20:37:01 +00:00
{ lib, buildDunePackage, fetchurl, ocaml }:
2016-02-20 14:38:30 +00:00
2020-09-28 13:06:44 +00:00
buildDunePackage rec {
pname = "result";
version = "1.5";
2016-02-20 14:38:30 +00:00
2021-02-26 20:37:01 +00:00
useDune2 = lib.versionAtLeast ocaml.version "4.08";
2020-09-28 13:06:44 +00:00
src = fetchurl {
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
2016-02-20 14:38:30 +00:00
};
meta = {
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.
'';
2020-09-28 13:06:44 +00:00
license = lib.licenses.bsd3;
2016-02-20 14:38:30 +00:00
};
}