2017-12-14 07:36:29 +00:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg
|
2017-03-16 07:11:33 +00:00
|
|
|
, astring, fmt, fpath, logs, rresult
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-bos-${version}";
|
2018-11-09 15:14:44 +00:00
|
|
|
version = "0.2.0";
|
2017-03-16 07:11:33 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://erratique.ch/software/bos/releases/bos-${version}.tbz";
|
2018-11-09 15:14:44 +00:00
|
|
|
sha256 = "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc";
|
2017-03-16 07:11:33 +00:00
|
|
|
};
|
|
|
|
|
2017-12-14 07:36:29 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
2017-03-16 07:11:33 +00:00
|
|
|
propagatedBuildInputs = [ astring fmt fpath logs rresult ];
|
|
|
|
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Basic OS interaction for OCaml";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://erratique.ch/software/bos;
|
2017-03-16 07:11:33 +00:00
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|