summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/rresult
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-03-15 20:04:40 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-15 21:21:27 +0000
commiteba3900781ef0abd0a8eb478820280851d1e0fbb (patch)
tree93ebfe66a38d4a80c610314bb039669c78807d4b /pkgs/development/ocaml-modules/rresult
parent18a272ef756ee6901cce4726e97a9ddb495b15ad (diff)
downloadnixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar.gz
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar.bz2
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar.lz
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar.xz
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.tar.zst
nixpkgs-eba3900781ef0abd0a8eb478820280851d1e0fbb.zip
ocamlPackages.rresult: init at 0.5.0
Rresult is an OCaml module for handling computation results and errors in an
explicit and declarative manner without resorting to exceptions.

Homepage: http://erratique.ch/software/rresult
Diffstat (limited to 'pkgs/development/ocaml-modules/rresult')
-rw-r--r--pkgs/development/ocaml-modules/rresult/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/rresult/default.nix b/pkgs/development/ocaml-modules/rresult/default.nix
new file mode 100644
index 00000000000..f9951b56da2
--- /dev/null
+++ b/pkgs/development/ocaml-modules/rresult/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg }:
+
+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";
+
+	buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
+
+	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;
+	};
+}