2017-03-16 07:11:33 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
|
|
|
|
, astring, fmt, fpath, logs, rresult
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-bos-${version}";
|
2017-06-27 16:14:29 +00:00
|
|
|
version = "0.1.6";
|
2017-03-16 07:11:33 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/bos/releases/bos-${version}.tbz";
|
2017-06-27 16:14:29 +00:00
|
|
|
sha256 = "1z9sbziqddf770y94pd0bffsp1wdr1v3kp2p00pr27adv7h7dgls";
|
2017-03-16 07:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
|
|
|
|
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
|
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Basic OS interaction for OCaml";
|
|
|
|
homepage = http://erratique.ch/software/bos;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|