@@ -0,0 +1,27 @@
1+{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
2+, astring, fmt, fpath, logs, rresult
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "ocaml${ocaml.version}-bos-${version}";
7+ version = "0.1.4";
8+ src = fetchurl {
9+ url = "http://erratique.ch/software/bos/releases/bos-${version}.tbz";
10+ sha256 = "1ly66lysk4w6mdy4k1n3ynlpfpq7lw4wshcpzgx58v6x613w5s7q";
11+ };
12+
13+ unpackCmd = "tar xjf $src";
14+
15+ buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
16+ propagatedBuildInputs = [ astring fmt fpath logs rresult ];
17+
18+ inherit (topkg) buildPhase installPhase;
19+
20+ meta = {
21+ description = "Basic OS interaction for OCaml";
22+ homepage = http://erratique.ch/software/bos;
23+ license = stdenv.lib.licenses.isc;
24+ maintainers = [ stdenv.lib.maintainers.vbgl ];
25+ inherit (ocaml.meta) platforms;
26+ };
27+}