2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "ocaml${ocaml.version}-rresult";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
|
|
|
|
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ result ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
homepage = "https://erratique.ch/software/rresult";
|
|
|
|
description = "Result value combinators for OCaml";
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|