2017-12-14 08:36:29 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
2017-03-15 21:04:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-rresult-${version}";
|
2018-10-27 06:53:10 +02:00
|
|
|
version = "0.6.0";
|
2017-03-15 21:04:40 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
|
2018-10-27 06:53:10 +02:00
|
|
|
sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
|
2017-03-15 21:04:40 +01:00
|
|
|
};
|
|
|
|
|
2017-12-14 08:36:29 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-03-15 21:04:40 +01:00
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
homepage = http://erratique.ch/software/rresult;
|
|
|
|
description = "Result value combinators for OCaml";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|