summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/rresult/default.nix
blob: 2cb602973f5f11c85de47cf3dfa8bcc6ff9dcd1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:

stdenv.mkDerivation rec {
	name = "ocaml${ocaml.version}-rresult-${version}";
	version = "0.6.0";
	src = fetchurl {
		url = "http://erratique.ch/software/rresult/releases/rresult-${version}.tbz";
		sha256 = "1k69a3gvrk7f2cshwjzvk7818f0bwxhacgd14wxy6d4gmrggci86";
	};

	unpackCmd = "tar xjf $src";

	buildInputs = [ ocaml findlib ocamlbuild topkg ];

	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;
	};
}