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 {
|
2022-02-06 22:35:27 +00:00
|
|
|
pname = "ocaml${ocaml.version}-rresult";
|
2021-01-21 00:24:35 +00:00
|
|
|
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
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
buildInputs = [ 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
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
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
|
|
|
}
|