depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ocaml-result/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

24 lines
778 B
Nix

{ lib, buildDunePackage, fetchurl, ocaml }:
buildDunePackage (rec {
pname = "result";
version = "1.5";
src = fetchurl {
url = "https://github.com/janestreet/result/releases/download/${version}/result-${version}.tbz";
sha256 = "0cpfp35fdwnv3p30a06wd0py3805qxmq3jmcynjc3x2qhlimwfkw";
};
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 = lib.licenses.bsd3;
};
} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") {
duneVersion = "1";
})