2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
2017-03-15 20:04:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-21 00:24:35 +00:00
|
|
|
name = "ocaml${ocaml.version}-rresult-${version}";
|
|
|
|
version = "0.6.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
|
|
|
|
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
|
|
|
|
};
|
2017-03-15 20:04:40 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-03-15 20:04:40 +00:00
|
|
|
|
2020-01-03 03:29:37 +00:00
|
|
|
propagatedBuildInputs = [ result ];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2017-03-15 20:04:40 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
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;
|
|
|
|
};
|
2017-03-15 20:04:40 +00:00
|
|
|
}
|