2021-01-11 13:49:15 +01:00
|
|
|
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
|
2017-03-15 21:04:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-21 01:24:35 +01: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 21:04:40 +01:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-03-15 21:04:40 +01:00
|
|
|
|
2020-01-03 04:29:37 +01:00
|
|
|
propagatedBuildInputs = [ result ];
|
2021-01-19 22:20:11 +01:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2017-03-15 21:04:40 +01:00
|
|
|
|
2021-01-21 01:24:35 +01: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 21:04:40 +01:00
|
|
|
}
|