2017-12-14 07:36:29 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
|
2017-03-15 20:04:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-rresult-${version}";
|
|
|
|
version = "0.5.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
|
|
|
|
sha256 = "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-03-15 20:04:40 +00: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;
|
|
|
|
};
|
|
|
|
}
|